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