worker: fix missed break on successful waitpid()
authorYuya Nishihara <yuya@tcha.org>
Thu, 17 Nov 2016 21:43:01 +0900
changeset 30422 0e6ce6313e47
parent 30421 21772a6a7861
child 30423 237b2883cbd8
worker: fix missed break on successful waitpid() Follow-up for 5069a8a40b1b.
mercurial/worker.py
--- a/mercurial/worker.py	Thu Nov 10 16:49:42 2016 -0500
+++ b/mercurial/worker.py	Thu Nov 17 21:43:01 2016 +0900
@@ -102,6 +102,7 @@
             while True:
                 try:
                     p, st = os.waitpid(pid, (0 if blocking else os.WNOHANG))
+                    break
                 except OSError as e:
                     if e.errno == errno.EINTR:
                         continue