www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/05/26/16:52:42

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: <m0yeSxO-00117iC.cygnus.cygwin32.developers@malasada.lava.net>
References: <199805262224 DOT SAA28798 AT kramden DOT cygnus DOT com>
Mime-Version: 1.0
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.

- Raw text -


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