Skip to content

Commit

Permalink
Fix call to os.kill in exectuables.py
Browse files Browse the repository at this point in the history
Addresses #32
  • Loading branch information
bcongdon authored and toumorokoshi committed Jul 26, 2017
1 parent 729f807 commit 1a1b300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uranium/executables.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{body}
""".strip()
import os
import signal
import stat
import subprocess
import sys
Expand Down Expand Up @@ -69,7 +70,7 @@ def main(build):
try:
out, err = popen.communicate()
except KeyboardInterrupt:
os.kill(popen.pid)
os.kill(popen.pid, signal.SIGINT)
exit_code = popen.returncode

if exit_code != 0 and fail_on_error:
Expand Down

0 comments on commit 1a1b300

Please sign in to comment.