[PATCH STABLE] worker: wait worker pid explicitly
Jun Wu
quark at fb.com
Thu Jul 28 12:53:02 EDT 2016
I actually considered this before submitting the V1. This may "eat" return
values useful for other code. I will send the SIGCHLD patch.
Excerpts from Yuya Nishihara's message of 2016-07-28 22:01:14 +0900:
> Perhaps the minimal patch would be to wait until all pids are reaped, something
> like this:
>
> while knownpids:
> try:
> pid, st = os.wait()
> except ...
> # catch ECHILD
> if pid not in knownpids:
> continue
> knownpids.remove(pid)
More information about the Mercurial-devel
mailing list