[issue1954] SocketServer.ForkingMixIn creates a zombie

Ralf Schmitt report at bugs.python.org
Tue Jan 29 07:34:24 CET 2008


Ralf Schmitt added the comment:

Well, one child isn't the maximum. All children which do not finish
before the last client connects, will live on as zombies (and will be
collected when the next client connects). If that is acceptable, then
just close this report.

Using signals would be easier if http://bugs.python.org/issue1089358
goes in. But even then a single accept call might not suffice and the
code might need to select on the listening socket and another
filedescriptor (on which the signal handler writes).

The simplest solution might be to use select with a timeout and check
for dead children periodically.

(and sorry for not filling out the complete form.)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1954>
__________________________________


More information about the Python-bugs-list mailing list