delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/14/00:31:36

X-Recipient: archive-cygwin AT delorie DOT 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 AT cwilson DOT fastmail DOT 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 AT cygwin DOT com>
Subject: Passing file descriptors over a socket
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019