mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Make the API to run background processes more powerful
Supports death notification and can redirect stdout/stderr to an fd
This commit is contained in:
@@ -116,7 +116,7 @@ def update_check() -> bool:
|
||||
kitty_exe(), '+runpy',
|
||||
'from kitty.update_check import run_worker; run_worker()'
|
||||
], stdout=subprocess.PIPE, preexec_fn=clear_handled_signals)
|
||||
except OSError as e:
|
||||
except Exception as e:
|
||||
log_error(f'Failed to run kitty for update check, with error: {e}')
|
||||
return False
|
||||
monitor_pid(p.pid)
|
||||
|
||||
Reference in New Issue
Block a user