[issue12184] socketserver.ForkingMixin collect_children routine needs to collect only it's children

Charles-François Natali report at bugs.python.org
Thu May 26 15:11:12 CEST 2011


Charles-François Natali <neologix at free.fr> added the comment:

Some precisions:
1) Of course, if a handler changes its process group through setsid/setpgrp, it won't be waited on.
2) If a handler running on behalf of a process which is the current process group leader calls setsid, it will get an EPERM error.
I don't think anyone is using that, but I'd rather make it clear.
The only way I can think of to alleviate 2 would be to spawn a dummy process that would just be used as process group leader (and since it would keep running, no need to re-allocate a new PGID when worker processes exit).

----------

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


More information about the Python-bugs-list mailing list