Skip to content

Commit 881a8f0

Browse files
committed
Add reference to Windows taskkill
1 parent 92e6047 commit 881a8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/java_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def preexec_func():
8181
# (because the UNIX "exec" command is not available). This means we cannot simply
8282
# call proc.kill(), which kills only the "spark-submit.cmd" process but not the
8383
# JVMs. Instead, we use "taskkill" with the tree-kill option "/t" to terminate all
84-
# child processes in the tree.
84+
# child processes in the tree (http://technet.microsoft.com/en-us/library/bb491009.aspx)
8585
def killChild():
8686
Popen(["cmd", "/c", "taskkill", "/f", "/t", "/pid", str(proc.pid)])
8787
atexit.register(killChild)

0 commit comments

Comments
 (0)