Fix fd leak in prewarm zygote

This commit is contained in:
Kovid Goyal 2022-07-03 13:32:09 +05:30
parent 71c902eaf8
commit a94a0f3026
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -302,6 +302,7 @@ def fork(shm_address: str, all_non_child_fds: Iterable[int]) -> Tuple[int, int]:
poll = select.poll()
poll.register(r, select.POLLIN)
tuple(poll.poll())
os.close(r)
return child_pid, ready_fd_write
# child process
remove_signal_handlers()