|
From: | Paolo Bonzini |
Subject: | Re: passfd on more platforms |
Date: | Mon, 14 Mar 2011 14:20:54 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 03/14/2011 12:38 AM, Bruno Haible wrote:
On mingw, I haven't even tried the module. It first requires - a 'socketpair' module for the test, - to rewrite the test to use the 'execute' module instead of fork().
MinGW would need a total rewrite. The Win32 API requires you to duplicate the handle in the context of the sending process, and send the new handle somehow to the receiving process. For example you can get information on the socket using gethostname (getpeername on the other side), create a named pipe based on the name, and send the handle on the named pipe.
It probably could fit within the sendfd/recvfd API, at least. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |