delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/24/11:34:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 24 Jan 2002 17:32:53 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Descriptor passing between process
Message-ID: <20020124173253.E11608@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <002401c1a3f4$0b77e8c0$010310ac AT lyoncleitienne> <20020123120701 DOT A11608 AT cygbert DOT vinschen DOT de> <8181418335 DOT 20020124161420 AT logos-m DOT ru> <20020124142156 DOT Y11608 AT cygbert DOT vinschen DOT de> <4183271981 DOT 20020124164513 AT logos-m DOT ru> <20020124163840 DOT B11608 AT cygbert DOT vinschen DOT de> <20020124170147 DOT D11608 AT cygbert DOT vinschen DOT de> <4192451650 DOT 20020124191813 AT logos-m DOT ru>
Mime-Version: 1.0
In-Reply-To: <4192451650.20020124191813@logos-m.ru>
User-Agent: Mutt/1.3.22.1i

On Thu, Jan 24, 2002 at 07:18:13PM +0300, Egor Duda wrote:
> Hi!
> 
> Thursday, 24 January, 2002 Corinna Vinschen cygwin AT cygwin DOT com wrote:
> 
> CV> It *could* be implemented.
> 
> CV> First we would have to implement the control message passing at all and
> CV> when it's available we could perhaps even implement descriptor passing
> CV> using the DuplicateHandle() function.
> 
> To call DuplicateHandle() you must have a process handle of the peer.
> i don't know how can we do it properly without cygwin daemon.

Yes, why not.  Did you have a look into Robert's daemon so far?

> btw, i wonder if descriptor sent through AF_LOCAL socket whould remain
> valid after sender closes it? and what about "after sender terminates"?

We're talking about Cygwin processes not native Windows processes,
so we should be able to handle that (more or less) correctly.
What if the sender is blocked until the daemon got a descriptor
copy?  Then the sender can do what it wants.  Just a draft.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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