From d661bac3a76769912122e8e8b3ce41c6bc25eb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20P=C3=A1ral?= Date: Wed, 21 Feb 2018 12:38:07 +0100 Subject: [PATCH] taskotron: improve messaging for imagefactory-kill-zombie --- roles/taskotron/imagefactory/files/imagefactory-kill-zombie | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/taskotron/imagefactory/files/imagefactory-kill-zombie b/roles/taskotron/imagefactory/files/imagefactory-kill-zombie index 5a5deb0c96..b5d76df3ed 100755 --- a/roles/taskotron/imagefactory/files/imagefactory-kill-zombie +++ b/roles/taskotron/imagefactory/files/imagefactory-kill-zombie @@ -18,7 +18,7 @@ TIMEOUT=${1:-$DEFAULT_TIMEOUT} # convert to seconds TIMEOUT=$(( $TIMEOUT * 60 )) -while pgrep -f "$PROCESS_ID"; do +while true; do # get PID of the oldest (pgrep -o) running matched process PID=$(pgrep -o -f "$PROCESS_ID") if [ -z "$PID" ]; then