How do twisted and multiprocessing.Process create zombies?

Nobody nobody at nowhere.com
Thu Jul 7 02:22:05 CEST 2011


On Tue, 05 Jul 2011 14:52:49 -0700, bitcycle wrote:

> In python, using twisted loopingcall, multiprocessing.Process, and
> multiprocessing.Queue; is it possible to create a zombie process. And, if
> so, then how?

A zombie is a process which has terminated but hasn't been wait()ed on
(aka "reaped") by its parent.

Most libraries which create child processes make some effort to reap them.
E.g. the subprocess module keeps a list of "orphaned" processes (those for
which the Popen object was deleted while the underlying process was still
alive), and polls the list periodically (specifically, whenever a new
Popen object is created).




More information about the Python-list mailing list