From: newsham AT lava DOT net (Tim Newsham) Subject: Re: close-on-exec doesnt work for spawn*() 26 May 1998 16:52:42 -0700 Message-ID: References: <199805262224 DOT SAA28798 AT kramden DOT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: cgf AT cygnus DOT com (Christopher Faylor) Cc: cygwin32-developers AT cygnus DOT com > 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. Is there any other mechanism for making file descriptors close when a spawn is performed? > cgf Tim N.