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

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: close-on-exec doesnt work for spawn*()
26 May 1998 17:22:18 -0700 :
Message-ID: <199805262351.TAA28909.cygnus.cygwin32.developers@kramden.cygnus.com>
To: cgf AT cygnus DOT com, newsham AT lava DOT net
Cc: cygwin32-developers AT cygnus DOT com

>> There is also a SetHandle function that would do this on a Win32 basis, but
>> I believe it is only available for NT 4 and beyond.
>> 
>> The bottom line is that I don't think there is any foolproof way to do this.
>
>Hmm.. don't you have to explicitely set some flag to make handles
>inheritable?

Yes.  You set a boolen value to TRUE in a SECURITY_DESCRIPTOR (or something
like that).  That would make the handle inheritable/non-inheritable but it
doesn't cover the fcntl() case.
--
cgf AT cygnus DOT com             "Everything has a boolean value, if you stand
http://www.cygnus.com/      far enough away from it."  -- Galena Alyson Canada

- Raw text -


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