mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
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.
This commit is contained in:
parent
339f5e3ffc
commit
1b5632445b
1 changed files with 5 additions and 1 deletions
|
|
@ -452,7 +452,11 @@ def collect_children(self):
|
||||||
except os.error:
|
except os.error:
|
||||||
pid = None
|
pid = None
|
||||||
if not pid: break
|
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):
|
def handle_timeout(self):
|
||||||
"""Wait for zombies after self.timeout seconds of inactivity.
|
"""Wait for zombies after self.timeout seconds of inactivity.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue