mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 18:37:50 +00:00
Handle EINTR in reap_zombies
This commit is contained in:
parent
2b9198866a
commit
0df0fd6a0b
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue