Kaydet (Commit) 1b563244 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Add diagnostic message to help figure-out why SocketServer tests occasionally crash

when trying to remove a pid that in not in the activechildren list.
üst 339f5e3f
......@@ -452,7 +452,11 @@ class ForkingMixIn:
except os.error:
pid = None
if not pid: break
self.active_children.remove(pid)
try:
self.active_children.remove(pid)
except ValueError, e:
raise ValueError('%s. x=%d and list=%r' % (e.message, pid,
self.active_children))
def handle_timeout(self):
"""Wait for zombies after self.timeout seconds of inactivity.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment