# HG changeset patch # User Yuya Nishihara # Date 1479386581 -32400 # Node ID 0e6ce6313e4739db4793a231e76be03e83cc246d # Parent 21772a6a7861bc312b1ba862334d105e56b38d07 worker: fix missed break on successful waitpid() Follow-up for 5069a8a40b1b. diff -r 21772a6a7861 -r 0e6ce6313e47 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