[Bugfix] Keep force-killing the process tree when a child exits mid-walk (#59984)

Signed-off-by: Lanze Liu <lanzetech@gmail.com>
Co-authored-by: Ning Xie <andy.xning@gmail.com>
This commit is contained in:
Lanze Liu
2026-10-13 20:33:18 -07:00
committed by GitHub
co-authored by Ning Xie
parent 2521446ac8
commit f4b8d43a68
2 changed files with 31 additions and 1 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ def kill_process_tree(pid: int):
# Send SIGKILL to all children first
for child in children:
with contextlib.suppress(ProcessLookupError):
with contextlib.suppress(ProcessLookupError, psutil.NoSuchProcess):
logger.warning(
"[shutdown] force killing sub process %s pid %d",
child.name(),