mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 09:42:38 -05: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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user