[Twisted-Python] How do twisted and multiprocessing.Process create zombies?
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Tue Jul 5 18:00:35 EDT 2011
On 09:51 pm, sean.m.ochoa at 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
More information about the Twisted-Python
mailing list