Skip to content

Commit

Permalink
Add reference to Windows taskkill
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Aug 27, 2014
1 parent 92e6047 commit 881a8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/java_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def preexec_func():
# (because the UNIX "exec" command is not available). This means we cannot simply
# call proc.kill(), which kills only the "spark-submit.cmd" process but not the
# JVMs. Instead, we use "taskkill" with the tree-kill option "/t" to terminate all
# child processes in the tree.
# child processes in the tree (http://technet.microsoft.com/en-us/library/bb491009.aspx)
def killChild():
Popen(["cmd", "/c", "taskkill", "/f", "/t", "/pid", str(proc.pid)])
atexit.register(killChild)
Expand Down

0 comments on commit 881a8f0

Please sign in to comment.