mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
fix handling of ctrl-c
This commit is contained in:
parent
8f640ae1ef
commit
65af251340
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ def wait_for_active_job():
|
||||||
def handle_sigint(num, frame):
|
def handle_sigint(num, frame):
|
||||||
obj.done = True
|
obj.done = True
|
||||||
os.kill(obj.pid, signal.SIGINT)
|
os.kill(obj.pid, signal.SIGINT)
|
||||||
|
raise KeyboardInterrupt
|
||||||
|
|
||||||
signal.signal(signal.SIGTSTP, handle_sigstop)
|
signal.signal(signal.SIGTSTP, handle_sigstop)
|
||||||
signal.signal(signal.SIGINT, handle_sigint)
|
signal.signal(signal.SIGINT, handle_sigint)
|
||||||
|
|
Loading…
Add table
Reference in a new issue