Comment 19 for bug 159258

Revision history for this message
In , Darin-moz (darin-moz) wrote :

i may be mistaken, but i think NSPR's notion of inheritable file descriptors is
just a mechanism to allow a child process to get access to a PRFileDesc handle
that references the OS file descriptor. in other words, it is just a XP
mechanism for accessing inherited file descriptors. it does not seem to get in
the way of the native mechanisms. it just makes it possible to get a PRFileDesc
from a native file descriptor. in fact, it seems to create a name to PRFileDesc
dictionary, which is passed to the child process as an environment variable (at
least that's how the UNIX impl works). so, i think the comments in the NSPR
reference are just misleading. but, you should probably give your patch a try ;)