Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do twisted and multiprocessing.Process create zombies?

40 views
Skip to first unread message

bitcycle

unread,
Jul 5, 2011, 5:52:49 PM7/5/11
to
In python, using twisted loopingcall, multiprocessing.Process, and multiprocessing.Queue; is it possible to create a zombie process. And, if so, then how?

Stefan Behnel

unread,
Jul 5, 2011, 8:47:55 PM7/5/11
to pytho...@python.org
bitcycle, 05.07.2011 23:52:

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

I think it's best to consult your local Voodoo master on the matter of
zombie creation processes.

That being said, there are far too many zombies around already, so please
don't add to that.

Stefan

Message has been deleted

Nobody

unread,
Jul 6, 2011, 8:22:05 PM7/6/11
to

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).

0 new messages