Kill the sockerServer in last (1sec after the other)

This commit is contained in:
Félix MARQUET
2024-04-11 14:46:16 +00:00
parent c0a07246cf
commit ad25d445f2

View File

@@ -34,7 +34,9 @@ monitor_all() {
for pid in $pids; do
if ps -p $pid > /dev/null; then
echo "Program with PID $pid has terminated, stopping other programs"
pkill -P $$ -f "socketServer|lidar|arucoDetector|ihm_robot"
pkill -P $$ -f "lidar|arucoDetector|ihm_robot"
sleep 1
pkill -P && -f "socketServer"
break
fi
done