mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 04:03:16 +02:00
Fix fd leak in prewarm zygote
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user