Author nnorwitz
Date 2006-08-15.04:48:13
SpamBayes Score
Marked as misclassified
SocketServer.ForkingMixIn.collect_children() does:

       pid, status = os.waitpid(0, options)

By setting pid = 0, it will wait on any children, even
if the children were not started by the SocketServer. 
This causes sporadic test failures:

It later assumes that if any child finished, that this
server owned the process, which is not a valid
assumption.  Any part of the code could have spawned
the child.

I will fix the test suite, so this problem shouldn't
occur (well at least reduce the likelihood by reaping
the children before each test).

I'm not certain how this problem should really be fixed
(or if it's even worth fixing).  Two possible solutions
 * only wait on the children we own
 * ignore returned pids that we don't own
Date User Action Args
2008-01-20 09:58:54adminlinkissue1540386 messages
2008-01-20 09:58:54admincreate