mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
Clear signal handlers when running processes
This commit is contained in:
@@ -9,7 +9,9 @@ from typing import Dict, NamedTuple, Optional, Tuple
|
||||
from urllib.request import urlopen
|
||||
|
||||
from .config import atomic_save
|
||||
from .constants import Version, cache_dir, kitty_exe, version, website_url
|
||||
from .constants import (
|
||||
Version, cache_dir, clear_handled_signals, kitty_exe, version, website_url
|
||||
)
|
||||
from .fast_data_types import add_timer, get_boss, monitor_pid
|
||||
from .notify import notify
|
||||
from .utils import log_error, open_url
|
||||
@@ -115,7 +117,7 @@ def update_check() -> bool:
|
||||
p = subprocess.Popen([
|
||||
kitty_exe(), '+runpy',
|
||||
'from kitty.update_check import run_worker; run_worker()'
|
||||
], stdout=subprocess.PIPE)
|
||||
], stdout=subprocess.PIPE, preexec_fn=clear_handled_signals)
|
||||
except OSError as e:
|
||||
log_error(f'Failed to run kitty for update check, with error: {e}')
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user