This is the mail archive of the
mailing list for the Cygwin project.
Passing file descriptors over a socket
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Wed, 14 Oct 2009 00:31:04 -0400
- Subject: Passing file descriptors over a socket
I was trying to build libassuan (one of the prerequisites for GnuPG2),
and ran in to this problem on the test:
fdpassing[4844.4] DBG: -> OK Pleased to meet you
fdpassing[4844.4] DBG: <- # descriptor 4 is in flight
fdpassing[4844.4] DBG: <- INPUT FD
fdpassing: no pending file descriptors!
fdpassing[4844.4] DBG: -> ERR 101 server fault (general error)
fdpassing: sending INPUT FD failed: server fault
fdpassing[4844.4] DBG: <- BYE
fdpassing[4844.4] DBG: -> OK closing connection
I get this error in cygwin-1.7, and I have CYGWIN=server, and the
cygserver is installed and running.
After a bit of googling:
> This test could be trying to do something that cygwin doesn't support:
>> can [cygwin] pass file descriptors over unix sockets (streams) so
>> that a process can share its file descriptors with another?
> Nope. Sorry
So, since I'm not sure if things may have changed in this respect in
cygwin-1.7, I'll restate the OPs question:
Can [cygwin-1.7] pass file descriptors over unix sockets (streams) so
that a process can share its file descriptors with another?
If not, what sort of "not" is it? (a) possible, but nobody has had the
time or inclination to implement (b) not possible on win32 (c) possible,
but REALLY hard -- case (a) on steroids.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple