Unverified Commit e73167ad authored by Lianmin Zheng's avatar Lianmin Zheng Committed by GitHub
Browse files

Fix maximum recursion depth triggered on exception exit (#4438)

parent 862fe522
......@@ -527,6 +527,9 @@ def kill_process_tree(parent_pid, include_parent: bool = True, skip_pid: int = N
pass
if include_parent:
if parent_pid == os.getpid():
sys.exit(0)
try:
itself.kill()
......
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