Skip to content

Commit 5928699

Browse files
committed
use /f to kill on Windows
since it's not usually our child anymore
1 parent 630b61f commit 5928699

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ipyparallel/cluster/launcher.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,7 @@ def signal(self, sig):
494494
if self.state == 'running':
495495
if WINDOWS and sig != SIGINT:
496496
# use Windows tree-kill for better child cleanup
497-
cmd = ['taskkill', '-pid', str(self.process.pid), '-t']
498-
if sig == SIGKILL:
499-
cmd.append("-f")
497+
cmd = ['taskkill', '/pid', str(self.process.pid), '/t', '/F']
500498
check_output(cmd)
501499
else:
502500
self.process.send_signal(sig)

0 commit comments

Comments
 (0)