delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/05/26/17:15:29

From: ian AT cygnus DOT com (Ian Lance Taylor)
Subject: Re: close-on-exec doesnt work for spawn*()
26 May 1998 17:15:29 -0700 :
Message-ID: <199805262355.TAA00139.cygnus.cygwin32.developers@subrogation.cygnus.com>
References: <m0yeSxO-00117iC AT malasada DOT lava DOT net>
To: newsham AT lava DOT net
Cc: cgf AT cygnus DOT com, cygwin32-developers AT cygnus DOT com

   From: newsham AT lava DOT net (Tim Newsham)
   Date: Tue, 26 May 1998 13:16:34 -1000 (HST)

   > close_on_exec is only called for P_OVERLAY spawn, i.e. exec().
   > Whether this is correct or not is debatable, I think.

   Ok,  I'll start the debate :)

       - If I set close-on-exec flag on a descriptor, that descriptor
	 should not be open in any other (non-fork'ed) processes
	 created by the program.

I agree that if you set close-on-exec, the descriptor should not be
open in a process created using spawn.

Ian

- Raw text -


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