"docs/vscode:/vscode.git/clone" did not exist on "51f498e74f0ef654577fd3e9ded36272bea82334"
Unverified Commit 60524920 authored by Kebe's avatar Kebe Committed by GitHub
Browse files

[Bug]: Fix maximum recursion depth triggered on exception exit (#3519)

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