Add siginit to lidar

This commit is contained in:
2024-05-08 13:07:37 +02:00
parent 1f8e23206e
commit db21a94325

View File

@@ -104,6 +104,11 @@ monitor_all() {
kill -SIGINT $other_pid 2>/dev/null
continue
fi
# Si le programme est 'lidar', envoyer SIGINT au lieu de SIGKILL
if ps -p $other_pid -o comm= | grep -q "lidar"; then
kill -SIGINT $other_pid 2>/dev/null
continue
fi
kill -SIGKILL $other_pid 2>/dev/null
fi
done