Comment 17 for bug 159258

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

biesi: well, NSPR process attr only allows us to control specific values passed
on to the child process, like stdin for example. currently, it doesn't provide
a way to make other file descriptors close-on-exec, which is what we'd need. my
concern is with portability... basically, we need to iterate over any open file
descriptors (other than those for stdin, et al.) and mark them as close-on-exec.
 the portability problem is how to determine the set of open file descriptors.
we know how to do this under linux using the /proc filesystem, but that
obviously doesn't work on other platforms. for example, what about OSX?

if we use the IPC daemon then that problem is avoided.