[Bugfix] Fix example disagg_example_p2p_nccl_xpyd.sh zombie process (#21437)

Signed-off-by: David Chen <530634352@qq.com>
This commit is contained in:
WeiQing Chen 2025-07-24 11:42:11 +08:00 committed by GitHub
parent aa08a954f9
commit f8c15c4efb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,6 +93,7 @@ ensure_python_library_installed() {
cleanup() {
echo "Stopping everything…"
trap - INT TERM # prevent re-entrancy
pkill -9 -f "disagg_proxy_p2p_nccl_xpyd.py"
kill -- -$$ # negative PID == "this whole process-group"
wait # reap children so we don't leave zombies
exit 0