Skip to content
Snippets Groups Projects
Commit 53f0d676 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #8443: Fixed cleanup of outputProc after 2 minute timeout (actually wait...)

parent 2f9d3cc6
No related branches found
No related tags found
No related merge requests found
...@@ -508,7 +508,7 @@ sendback_state "$OBSRESULT" ...@@ -508,7 +508,7 @@ sendback_state "$OBSRESULT"
# clean up outputProc children # clean up outputProc children
echo "[outputProc] Waiting up to 120 seconds for normal end" echo "[outputProc] Waiting up to 120 seconds for normal end"
# Set trap to kill the sleep in case of signals save the pid of sleep # Set trap to kill the sleep in case of signals save the pid of sleep
( trap 'kill $SLEEP_PID' SIGTERM SIGINT SIGQUIT SIGHUP; sleep 120 & SLEEP_PID=$!; echo '[outputProc] Killing'; wait $SLEEP_PID; clean_up 0 ) & ( trap 'kill $SLEEP_PID' SIGTERM SIGINT SIGQUIT SIGHUP; sleep 120 & SLEEP_PID=$!; wait $SLEEP_PID; echo '[outputProc] Killing'; clean_up 0 ) &
KILLER_PID=$! KILLER_PID=$!
# Waiting for the child processes to finish # Waiting for the child processes to finish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment