...
This commit is contained in:
parent
6350652009
commit
2b9198866a
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue