Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Jul 3, 2023
1 parent ee48d8b commit 292703a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sky/skylet/log_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ def run_with_log(
return proc.returncode, stdout, stderr
return proc.returncode
except KeyboardInterrupt:
# Send SIGINT to the process directly, otherwise, the underlying process
# will only killed after the python program exits, causing the stream
# handling stuck at `readline`.
os.killpg(proc.pid, signal.SIGINT)
raise

Expand Down

0 comments on commit 292703a

Please sign in to comment.