changeset 30422:0e6ce6313e47

worker: fix missed break on successful waitpid() Follow-up for 5069a8a40b1b.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 17 Nov 2016 21:43:01 +0900
parents 21772a6a7861
children 237b2883cbd8
files mercurial/worker.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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