Fix #7443
This commit is contained in:
parent
b3cc5aed30
commit
4d820a84bb
1 changed files with 8 additions and 4 deletions
|
|
@ -125,10 +125,14 @@ def on_death(exit_status: int, err: Optional[Exception]) -> None:
|
|||
for k, v in parse_env(x, env):
|
||||
env[k] = v
|
||||
|
||||
boss.run_background_process(
|
||||
cmdline, env=env, stdin=stdin_data, stdout=stdout.fileno(), stderr=stderr.fileno(),
|
||||
notify_on_death=on_death, remote_control_passwords=rcp, allow_remote_control=allow_remote_control
|
||||
)
|
||||
def callback(timer_id: Optional[int]) -> None:
|
||||
boss.run_background_process(
|
||||
cmdline, env=env, stdin=stdin_data, stdout=stdout.fileno(), stderr=stderr.fileno(),
|
||||
notify_on_death=on_death, remote_control_passwords=rcp, allow_remote_control=allow_remote_control
|
||||
)
|
||||
# Ensure that AsyncResponse is queued before the background process response
|
||||
from kitty.fast_data_types import add_timer
|
||||
add_timer(callback, 0, False)
|
||||
return AsyncResponse()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue