From 53f0d6762b920083bfab07e8b0dae8e7ccc94e07 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 9 Feb 2016 20:08:41 +0000 Subject: [PATCH] Task #8443: Fixed cleanup of outputProc after 2 minute timeout (actually wait...) --- RTCP/Cobalt/GPUProc/src/scripts/runObservation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RTCP/Cobalt/GPUProc/src/scripts/runObservation.sh b/RTCP/Cobalt/GPUProc/src/scripts/runObservation.sh index 528aacdd89b..b8fae54c7de 100755 --- a/RTCP/Cobalt/GPUProc/src/scripts/runObservation.sh +++ b/RTCP/Cobalt/GPUProc/src/scripts/runObservation.sh @@ -508,7 +508,7 @@ sendback_state "$OBSRESULT" # clean up outputProc children 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 -( 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=$! # Waiting for the child processes to finish -- GitLab