diff options
Diffstat (limited to 'Lib/SocketServer.py')
-rw-r--r-- | Lib/SocketServer.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index 1ede68d..82bc8fb 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -285,7 +285,10 @@ class ForkingMixIn: def collect_children(self): """Internal routine to wait for died children.""" while self.active_children: - pid, status = os.waitpid(0, os.WNOHANG) + try: + pid, status = os.waitpid(0, os.WNOHANG) + except os.error: + pid = None if not pid: break self.active_children.remove(pid) |