This commit is contained in:
Kovid Goyal 2017-10-22 19:25:51 +05:30
parent 6350652009
commit 2b9198866a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -247,8 +247,10 @@ def setup_profiling(args):
def reap_zombies(*a):
while True:
try:
os.waitpid(-1, os.WNOHANG)
except OSError:
pid, status = os.waitpid(-1, os.WNOHANG)
if pid == 0:
break
except Exception:
break