mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Handle EINTR in reap_zombies
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user