www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/08/14:47:59

Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Christopher Faylor <cgf AT cygnus DOT com>
Message-ID: <19990208094644.A24171@cygnus.com>
Date: Mon, 8 Feb 1999 09:46:44 -0500
To: jmm AT raleigh DOT ibm DOT com
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: pid problem found
References: <19990208093853 DOT A24123 AT cygnus DOT com> <199902081443 DOT JAA25182 AT jmm DOT raleigh DOT ibm DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.93i
In-Reply-To: <199902081443.JAA25182@jmm.raleigh.ibm.com>; from jmm@raleigh.ibm.com on Mon, Feb 08, 1999 at 09:43:23AM -0500

On Mon, Feb 08, 1999 at 09:43:23AM -0500, jmm AT raleigh DOT ibm DOT com wrote:
>> Umm.  Cygwin supports anonymous pipes.  Think UNIX.  That's what we're
>> trying to emulate.
>
>True enough... I should have said "Anon pipes created with CreatePipe
>and DuplicateHandle and inherited through CreateProcess"... unless
>I can swap out CreateProcess and the other stuff works (not saying
>that's not the case, just can't find an API call that claims to do
>this), then it's code re-write either way, and I might as well move
>the signal handling stuff over to events since that's pretty small
>code already (like I said, print an int and exit :)

Cygwin pipes are created with CreatePipe.  These pipes can be duplicated
with dup() or dup2().  They follow UNIX inheritance rules, i.e., they're
inherited by subprocesses by default.

That means that pipes will be inherited by processes that are
fork/execed or spawned.

Somehow I still get the feeling that you're making this a lot more
complicated than is warranted.

cgf

--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


- Raw text -


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