fix: kill_process_tree waits for the reap by default (#36589)

This commit is contained in:
Khoa Pham
2026-08-27 02:34:05 -07:00
committed by GitHub
parent 2ded8a6aea
commit 78d36f5f62
3 changed files with 12 additions and 7 deletions
@@ -443,7 +443,9 @@ class Runtime:
from sglang.srt.utils import kill_process_tree
if self.pid is not None:
kill_process_tree(self.pid)
# Note(kpham-sgl): __del__ routes here, so the reap wait has to stay
# off -- blocking inside GC stalls whichever thread is allocating.
kill_process_tree(self.pid, wait_timeout=None)
self.pid = None
def start_profile(self):