Comment 30 for bug 102408

Revision history for this message
In , dean gaudet (deangaudet) wrote :

you know, it occurs to me that NSPR should endeavour to present the same close-on-exec behaviour on all platforms... and honestly, the unix API is totally broken in this area -- this is something which NT (actually VMS, which NT inherits from) get right. the unix behaviour is OK when you're dealing with a half dozen fds... but real programs (especially multithreaded programs) have way more than a half dozen open. when you spawn a process you should explicitly specify the fds to be inherited. NSPR should default to setting F_CLOEXEC on everything on unix.