This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
clexec_exec.cc
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |