Handle EINTR in reap_zombies
This commit is contained in:
parent
2b9198866a
commit
0df0fd6a0b
@ -3,6 +3,7 @@
|
||||
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
import argparse
|
||||
import errno
|
||||
import locale
|
||||
import os
|
||||
import signal
|
||||
@ -250,6 +251,9 @@ def reap_zombies(*a):
|
||||
pid, status = os.waitpid(-1, os.WNOHANG)
|
||||
if pid == 0:
|
||||
break
|
||||
except OSError as err:
|
||||
if err.errno != errno.EINTR:
|
||||
break
|
||||
except Exception:
|
||||
break
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user