Comment 49 for bug 102408

Revision history for this message
In , Karlt (karlt) wrote :

(In reply to comment #12)
> The default inherit trait of a file descriptor opened via
> PR_Open() is inheritable on Unix and not-inheritable on Windows.

Any reason why we can't make the behavior of PR_Open() consistent on both platforms by getting PR_Open to make the file descriptor close-on-exec?

(It does get a little tricky with threads: it would be best if one thread didn't exec while another is between open and fcntl, but isn't NSPR the best place to deal with this?)