summaryrefslogtreecommitdiffstats
path: root/Lib/SocketServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-25 18:13:30 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-25 18:13:30 (GMT)
commit5bb05da6f751a9363c44188f04b50aaa8074a97b (patch)
treeb08f0177388558bf02d82cf5648e5a1a3cb85a8c /Lib/SocketServer.py
parenteacce12fdc3a30e76028a66aaa4227e65e459ea4 (diff)
downloadcpython-5bb05da6f751a9363c44188f04b50aaa8074a97b.zip
cpython-5bb05da6f751a9363c44188f04b50aaa8074a97b.tar.gz
cpython-5bb05da6f751a9363c44188f04b50aaa8074a97b.tar.bz2
correct retrieving return value of os.waitpid()
Diffstat (limited to 'Lib/SocketServer.py')
-rw-r--r--Lib/SocketServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py
index 102d9b5..b615247 100644
--- a/Lib/SocketServer.py
+++ b/Lib/SocketServer.py
@@ -290,7 +290,7 @@ class ForkingMixIn:
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)