[issue11616] reap_children should not use WNOHANG

Antoine Pitrou report at bugs.python.org
Sun Mar 20 17:59:46 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> I'm not sure. Was reap_children() meant to just reap zombie processes
> or wait for all children to finish?

Apparently just to reap zombie processes. At least that was the initial
intent. And it's true that we don't really need to collect all children
immediately, so perhaps this patch is overkill.

> It seems like it was written to just reap zombie processes. Might this
> not cause hangs during testing sometimes if a subprocess that was
> started has itself hung?

Yep.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11616>
_______________________________________


More information about the Python-bugs-list mailing list