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):
|
def _continue(job):
|
||||||
job['status'] = "running"
|
job['status'] = "running"
|
||||||
|
|
||||||
def _kill(obj):
|
def _kill(job):
|
||||||
check_output(['taskkill', '/F', '/T', '/PID', str(obj.pid)])
|
check_output(['taskkill', '/F', '/T', '/PID', str(job['obj'].pid)])
|
||||||
|
|
||||||
def ignore_sigtstp():
|
def ignore_sigtstp():
|
||||||
pass
|
pass
|
||||||
|
@ -49,7 +49,7 @@ if ON_WINDOWS:
|
||||||
except TimeoutExpired:
|
except TimeoutExpired:
|
||||||
pass
|
pass
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
_kill(obj)
|
_kill(active_task)
|
||||||
|
|
||||||
return wait_for_active_job()
|
return wait_for_active_job()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue