=== modified file 'sbin/pidns_run' --- old/sbin/pidns_run 2021-12-16 14:06:24 +0000 +++ new/sbin/pidns_run 2021-12-16 13:27:55 +0000 @@ -4,8 +4,6 @@ import os.path import ctypes import fcntl -import select -import errno libc = ctypes.CDLL(None, use_errno=True) CLONE_NEWPID = 0x20000000 @@ -24,15 +22,15 @@ ret = status >> 8 if sig: raise SystemExit(128 + sig) - if ret >= 128: + if ret >= 128 raise SystemExit(128) raise SystemExit(ret) def main(argv): (parent_rfd, parent_wfd) = os.pipe() - nonblock_cloexec(parent_rfd) - nonblock_cloexec(parent_wfd) + nonblock_cloexec(read_fd) + nonblock_cloexec(write_fd) if libc.unshare(CLONE_NEWPID) != 0: raise OSError(ctypes.get_errno()) fork_pid = os.fork()