]> granicus.if.org Git - python/commitdiff
correct retrieving return value of os.waitpid()
authorGuido van Rossum <guido@python.org>
Thu, 25 Jan 1996 18:13:30 +0000 (18:13 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 25 Jan 1996 18:13:30 +0000 (18:13 +0000)
Lib/SocketServer.py

index 102d9b516e97b4663f1133ab4fbfd82191fa9f9f..b6152470196442be7bfcffd03ddadb7737d8a81e 100644 (file)
@@ -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)