mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-10 09:43:26 +00:00
DRYer
This commit is contained in:
parent
a385c39c2e
commit
3e1d701dce
1 changed files with 1 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ class PrewarmProcess:
|
|||
env['KITTY_PREWARM_CONFIG'] = self.prewarm_config
|
||||
self.process = subprocess.Popen(
|
||||
[kitty_exe(), '+runpy', f'from kitty.prewarm import main; main({self.in_worker_fd})'],
|
||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE, pass_fds=(self.in_worker_fd,), env=env)
|
||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE, pass_fds=(self.in_worker_fd,), env=env, start_new_session=True)
|
||||
os.close(self.in_worker_fd)
|
||||
self.in_worker_fd = -1
|
||||
assert self.process.stdin is not None and self.process.stdout is not None
|
||||
|
|
@ -337,7 +337,6 @@ def main(notify_child_death_fd: int) -> None:
|
|||
child_id_map: Dict[int, int] = {}
|
||||
child_id_counter = count()
|
||||
self_pid = os.getpid()
|
||||
os.setsid()
|
||||
|
||||
def check_event(event: int, err_msg: str) -> None:
|
||||
if event & select.POLLHUP:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue