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

Task #7508: Add timeout to MessageRouter in case it does not respond to stop command

parent 0bb6c495
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,9 @@ source MessageFuncs.sh
unset LOFARROOT # Make sure MessageRouter reads ./MessageRouter.conf
# Allow timeouts on commands. Use: alarm <timeout> <cmd> <args>
alarm() { perl -e 'alarm shift; exec @ARGV' "$@"; }
#
# ---- TEST: normal configuration -----
#
......@@ -22,7 +25,7 @@ in2: out3
' > MessageRouter.conf
# Start MessageRouter
python $srcdir/../src/MessageRouter >&2 &
alarm 60 python $srcdir/../src/MessageRouter >&2 &
PID=$!
# Inject messages into all input queues
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment