Skip to content

Commit

Permalink
Backport PR #314: kill process group when killing kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver authored and MeeseeksDev[bot] committed Dec 15, 2017
1 parent dfa190d commit b8d617e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jupyter_client/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ def _kill_kernel(self):
# Signal the kernel to terminate (sends SIGKILL on Unix and calls
# TerminateProcess() on Win32).
try:
self.kernel.kill()
if hasattr(signal, 'SIGKILL'):
self.signal_kernel(signal.SIGKILL)
else:
self.kernel.kill()
except OSError as e:
# In Windows, we will get an Access Denied error if the process
# has already terminated. Ignore it.
Expand Down

0 comments on commit b8d617e

Please sign in to comment.