This commit is contained in:
Kovid Goyal 2022-06-12 18:15:23 +05:30
parent da6faa656c
commit 4f87f3e9f4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -482,7 +482,7 @@ def fork_prewarm_process(opts: Options, use_exec: bool = False) -> Optional[Prew
[kitty_exe(), '+runpy', f'from kitty.prewarm import exec_main; exec_main({stdin_read}, {stdout_write}, {death_notify_write})'], [kitty_exe(), '+runpy', f'from kitty.prewarm import exec_main; exec_main({stdin_read}, {stdout_write}, {death_notify_write})'],
pass_fds=(stdin_read, stdout_write, death_notify_write)) pass_fds=(stdin_read, stdout_write, death_notify_write))
child_pid = tp.pid child_pid = tp.pid
tp.returncode = 0 tp.returncode = 0 # prevent a warning when the popen object is deleted with the process still running
else: else:
child_pid = os.fork() child_pid = os.fork()
if child_pid: if child_pid: