taskotron: improve messaging for imagefactory-kill-zombie
This commit is contained in:
parent
a5d81b53bd
commit
d661bac3a7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue