kill all proccesses
authorMazet Laurent <laurent.mazet@thalesgroup.com>
Thu, 12 Jun 2025 13:48:19 +0000 (15:48 +0200)
committerMazet Laurent <laurent.mazet@thalesgroup.com>
Thu, 12 Jun 2025 13:48:19 +0000 (15:48 +0200)
test.sh

diff --git a/test.sh b/test.sh
index a77c5fc9a95bbe395b90be04d59ae3398dc2a2fa..53e5f9146103e8f6704d72dae8dea54ff65b124a 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -80,6 +80,8 @@ pids="$pids $!"
 sleep 4
 
 for p in $pids; do
+    echo killing $p
+    pkill -TERM -P $p 2>/dev/null
     kill -TERM $p 2>/dev/null
 done
 ip addr del dev eth0 10.1.0.1/24 && ip link del eth0 type dummy || echo no need to remove eth0