Mercurial > cpython-lru_cache-weakref
diff Lib/SocketServer.py @ 3354:0b021cf41dda legacy-trunk
correct retrieving return value of os.waitpid()
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 25 Jan 1996 18:13:30 +0000 |
| parents | ec0b42889243 |
| children | 409a89c5f66d |
line wrap: on
line diff
--- a/Lib/SocketServer.py Thu Jan 25 18:07:08 1996 +0000 +++ b/Lib/SocketServer.py Thu Jan 25 18:13:30 1996 +0000 @@ -290,7 +290,7 @@ def collect_children(self): """Internal routine to wait for died children.""" while self.active_children: - pid = os.waitpid(0, os.WNOHANG) + pid, status = os.waitpid(0, os.WNOHANG) if not pid: break self.active_children.remove(pid)
