blob: c2f33501b83ba702237cf2d3930fa5ef71927861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Tests for the watchdog plug-in
# Start a broker with watchdog, freeze it with kill -STOP, verify that it is killed.
export QPID_WATCHDOG_EXE=$PWD/../qpidd_watchdog
PORT=`../qpidd -dp0 --no-data-dir --auth=no --no-module-dir --load-module $PWD/../.libs/watchdog.so --log-to-file=qpidd_watchdog.log --watchdog-interval 1`
PID=`../qpidd -cp $PORT`
kill -STOP $PID
sleep 2
if kill -0 $PID 2>/dev/null; then
echo "Hung process did not die."
kill $PID
else
true
fi
|