From 97d886c91a724ebc7f79f522f699debd63b2fa75 Mon Sep 17 00:00:00 2001 From: Gyurix Date: Fri, 20 Dec 2024 13:58:46 +0100 Subject: [PATCH] Added checking process strings into check_pid script --- scripts/scheduler/check_pid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scheduler/check_pid.sh b/scripts/scheduler/check_pid.sh index d85bcec..c486b2b 100644 --- a/scripts/scheduler/check_pid.sh +++ b/scripts/scheduler/check_pid.sh @@ -18,7 +18,7 @@ if [ "$PID" != "" ]; then debug "BACKGROUND PID: $PID" #wait $PID - while pwdx $PID > /dev/null; do + while pwdx $PID | grep -vE 'No such process' > /dev/null; do debug "RUNNING PROCESS: $TASK - PID: $PID" sleep 2 done