Unverified Commit f8c15c4e authored by WeiQing Chen's avatar WeiQing Chen Committed by GitHub
Browse files

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


Signed-off-by: default avatarDavid Chen <530634352@qq.com>
parent aa08a954
...@@ -93,6 +93,7 @@ ensure_python_library_installed() { ...@@ -93,6 +93,7 @@ ensure_python_library_installed() {
cleanup() { cleanup() {
echo "Stopping everything…" echo "Stopping everything…"
trap - INT TERM # prevent re-entrancy trap - INT TERM # prevent re-entrancy
pkill -9 -f "disagg_proxy_p2p_nccl_xpyd.py"
kill -- -$$ # negative PID == "this whole process-group" kill -- -$$ # negative PID == "this whole process-group"
wait # reap children so we don't leave zombies wait # reap children so we don't leave zombies
exit 0 exit 0
......
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