mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
fix bug with killing jobs on windows
This commit is contained in:
parent
6f443cb266
commit
04ca96def5
1 changed files with 3 additions and 3 deletions
|
@ -17,8 +17,8 @@ if ON_WINDOWS:
|
|||
def _continue(job):
|
||||
job['status'] = "running"
|
||||
|
||||
def _kill(obj):
|
||||
check_output(['taskkill', '/F', '/T', '/PID', str(obj.pid)])
|
||||
def _kill(job):
|
||||
check_output(['taskkill', '/F', '/T', '/PID', str(job['obj'].pid)])
|
||||
|
||||
def ignore_sigtstp():
|
||||
pass
|
||||
|
@ -49,7 +49,7 @@ if ON_WINDOWS:
|
|||
except TimeoutExpired:
|
||||
pass
|
||||
except KeyboardInterrupt:
|
||||
_kill(obj)
|
||||
_kill(active_task)
|
||||
|
||||
return wait_for_active_job()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue