[Twisted-Python] How do twisted and multiprocessing.Process create zombies?

Using twisted loopingcall, multiprocessing.Process, and multiprocessing.Queue; is it possible to create a zombie process. And, if so, then how? -- bitcycle

On 09:51 pm, sean.m.ochoa@gmail.com wrote:
Using twisted loopingcall, multiprocessing.Process, and multiprocessing.Queue; is it possible to create a zombie process. And, if so, then how?
Uh, why would you want to create zombies? Since Twisted installs a SIGCHLD handler, it's not unlikely that non- cooperating libraries that create subprocesses, such as the multiprocessing module, will miss their exit notification, leaving a zombie. If you *don't* want zombies, use reactor.spawnProcess (or a library on top of it, like Ampoule) instead. Jean-Paul

I like glyph's answer. :) http://stackoverflow.com/questions/6589225/how-do-twisted-and-multiprocessin... On Tue, Jul 5, 2011 at 3:00 PM, <exarkun@twistedmatrix.com> wrote:
On 09:51 pm, sean.m.ochoa@gmail.com wrote:
Using twisted loopingcall, multiprocessing.Process, and multiprocessing.Queue; is it possible to create a zombie process. And, if so, then how?
Uh, why would you want to create zombies?
Since Twisted installs a SIGCHLD handler, it's not unlikely that non- cooperating libraries that create subprocesses, such as the multiprocessing module, will miss their exit notification, leaving a zombie.
If you *don't* want zombies, use reactor.spawnProcess (or a library on top of it, like Ampoule) instead.
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Sean | (206) 962-7954
participants (2)
-
exarkun@twistedmatrix.com
-
Sean Ochoa