Protect handle issue-ettes
Sun Jul 14 11:35:00 GMT 2002
I've just written a little test program for fcntl(..., FD_CLOEXEC)
and it doesn't seem to be having any effect at all, i.e. the
exec'd program can happily read from a file descriptor it's parent
open'd and marked as close-on-exec. So something's awry
I've attached the test program (in case I've made a hash of it):
call it as ./clexec_exec -1 and it should print out a chunk of
/etc/passwd (from the exec'd copy).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1204 bytes
Desc: not available
More information about the Cygwin-patches