Use continue instead of break on SIGKILL

`break`ing would keep trying to kill the same process and never move to
the next
This commit is contained in:
Athanasios Voutsadakis
2018-02-28 14:50:23 +00:00
parent b158c66705
commit 3045f6233b

View File

@@ -61,7 +61,7 @@ function on_exit {
if [[ "$n" -ge "$TERMINATE_TIMEOUT" ]]; then
echo "Timeout reached, killing process with pid ${APP_PID}"
kill -9 ${APP_PID} || true
break
continue
else
echo "Timeout not reached yet, checking " ${APP_PID}
# else, if process is still running send SIGTERM