mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 16:23:44 -04:00
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:
@@ -61,7 +61,7 @@ function on_exit {
|
|||||||
if [[ "$n" -ge "$TERMINATE_TIMEOUT" ]]; then
|
if [[ "$n" -ge "$TERMINATE_TIMEOUT" ]]; then
|
||||||
echo "Timeout reached, killing process with pid ${APP_PID}"
|
echo "Timeout reached, killing process with pid ${APP_PID}"
|
||||||
kill -9 ${APP_PID} || true
|
kill -9 ${APP_PID} || true
|
||||||
break
|
continue
|
||||||
else
|
else
|
||||||
echo "Timeout not reached yet, checking " ${APP_PID}
|
echo "Timeout not reached yet, checking " ${APP_PID}
|
||||||
# else, if process is still running send SIGTERM
|
# else, if process is still running send SIGTERM
|
||||||
|
|||||||
Reference in New Issue
Block a user