Unverified Commit ec2150b2 authored by Ke Bao's avatar Ke Bao Committed by GitHub
Browse files

Fix kill process util (#666)

parent 7620cd37
......@@ -335,7 +335,7 @@ def kill_parent_process():
"""Kill the parent process and all children of the parent process."""
current_process = psutil.Process()
parent_process = current_process.parent()
children = current_process.children(recursive=True)
children = parent_process.children(recursive=True)
for child in children:
if child.pid != current_process.pid:
os.kill(child.pid, 9)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment