X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AD55408.9070902@cwilson.fastmail.fm>
Date: Wed, 14 Oct 2009 00:31:04 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin@cygwin.com>
Subject: Passing file descriptors over a socket
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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[4844]: no pending file descriptors!
fdpassing[4844.4] DBG: -> ERR 101 server fault (general error)
fdpassing[2068]: sending INPUT FD failed: server fault
fdpassing[4844.4] DBG: <- BYE
fdpassing[4844.4] DBG: -> OK closing connection
FAIL: fdpassing.exe

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:
http://cygwin.com/ml/cygwin/2007-01/msg00693.html
> This test could be trying to do something that cygwin doesn't support:

http://sources.redhat.com/ml/cygwin/2004-01/msg00060.html
>> 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.

--
Chuck


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

