mercurial/commandserver.py
changeset 49303 dfdf85f37215
parent 49302 ee4537e365c8
child 49304 48f1b314056b
--- a/mercurial/commandserver.py	Tue May 31 04:11:34 2022 +0200
+++ b/mercurial/commandserver.py	Tue May 31 04:18:22 2022 +0200
@@ -693,9 +693,7 @@
         while self._workerpids:
             try:
                 pid, _status = os.waitpid(-1, options)
-            except OSError as inst:
-                if inst.errno != errno.ECHILD:
-                    raise
+            except ChildProcessError:
                 # no child processes at all (reaped by other waitpid()?)
                 self._workerpids.clear()
                 return