Skip to content

Commit

Permalink
Fix handling of ctrl-c interrupts
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Sep 4, 2024
1 parent f24070a commit 147fb13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rebench/subprocess_with_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ def run(args, env, cwd=None, shell=False, kill_tree=True, timeout=-1,
raise KeyboardInterrupt()
return result

if was_interrupted:
raise KeyboardInterrupt()

if not thread.is_alive():
exp = thread.exception
if exp:
Expand Down

0 comments on commit 147fb13

Please sign in to comment.