issue #155: don't inherit TLS state in mitogen.fork
This is a partial fix to a general problem: deciding which bits of state to keep from the parent, and which to clear out. When forking from a heavily threaded process, there will be 2x$n_threads fds just sitting around doing nothing, due to Latch use in the parent. We can't just close all nonstandard fds post-fork, since user code may be expecting some FDs to be preserved.
Showing
Please register or sign in to comment