delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/14/05:57:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 14 Oct 2009 11:56:42 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Passing file descriptors over a socket
Message-ID: <20091014095642.GN11169@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4AD55408 DOT 9070902 AT cwilson DOT fastmail DOT fm> <4AD5647C DOT 4040209 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <4AD5647C.4040209@gmail.com>
User-Agent: Mutt/1.5.17 (2007-11-01)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Oct 14 06:41, Dave Korn wrote:
> Charles Wilson wrote:
> 
> > 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.
> 
>   Well, there's going to be DuplicateHandle involved in it, to copy the
> underlying os handle into the new process, but that's going to be the
> trivially easy bit.  The real *tricky* part is likely going to be marshalling
> the corresponding fhandler_* objects across process boundaries.  That plus
> there will probably be some required support to handle these fds and how they
> interact across process groups, close-on-exec, fork and exec, etc., etc., -
> all the usual tricky areas.
> 
>   You probably should have had another option:
> 
>  (d) Who knows?  Not me, I've never scoped it out and maybe nobody has - the
> obvious parts are easy to guess, but the unobvious parts are going to be where
> all the complications arise.

It's more of an (e) possible, quite tricky, and a lot of work to get
it right.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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