Protect handle issue-ettes
Conrad Scott
Conrad.Scott@dsl.pipex.com
Sun Jul 14 11:35:00 GMT 2002
Chris,
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
somewhere.
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).
// Conrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clexec_exec.cc
Type: application/octet-stream
Size: 1204 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020714/f7d3a0ef/attachment.obj>
More information about the Cygwin-patches
mailing list