Comment 22 for bug 102408

Revision history for this message
In , Tenthumbs (tenthumbs) wrote :

In the time since I field this bug I realized that open file descriptors
are just once aspect of the problem of gracefully exiting the
mozilla/gre/whatever environment. In particular, you can't leave it
properly unless you know the start-up environment, which you don't. you
really need to think about the proper way to start before you can leave.

I don't see how you can have a clean secure XP way to do any of this so
I don't think how IPC (whatever that is) can help. I also don't think an
XP solution is appropriate anyway.

See bug 125505, attachment 105336. I try to handle setting
FD_CLOEXEC by testing /proc/self but fall back to looping over all fd's.