summaryrefslogtreecommitdiffstats
path: root/tests/diag.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-07 10:53:05 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-07 10:53:05 +0200
commit92ec206279e29d12d3d44e51280485d641579e41 (patch)
tree7b8f3c0216f67f7a34c119d27bd9ad9bf339f87b /tests/diag.sh
parentcaeb203f5188aafccc667c1afc42a49df80d0747 (diff)
downloadrsyslog-92ec206279e29d12d3d44e51280485d641579e41.tar.gz
rsyslog-92ec206279e29d12d3d44e51280485d641579e41.tar.xz
rsyslog-92ec206279e29d12d3d44e51280485d641579e41.zip
bugfix and testbench improvement
made shutdown more reliable by makeing sure that the main queue DA worker is only cancelled if this is actually unavoidable. Also moved down the deletion of rsyslogd's pid file to immediately before termination, so that absence of the file is a proper indication that rsyslogd has finished (in the past, e.g. the testbench accidently ran two intances as the pid file was deleted too early). Also some improvments to the testbench, namely to handle aborts more intelligently (but still not perfect).
Diffstat (limited to 'tests/diag.sh')
-rwxr-xr-xtests/diag.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/diag.sh b/tests/diag.sh
index b2bd13ac..56810c4f 100755
--- a/tests/diag.sh
+++ b/tests/diag.sh
@@ -39,6 +39,11 @@ case $1 in
while test -f rsyslog.pid; do
true
done
+ if [ -e core.* ]
+ then
+ echo "ABORT! core file exists, starting interactive shell"
+ bash
+ fi
;;
'wait-queueempty') # wait for main message queue to be empty
echo WaitMainQueueEmpty | java -classpath $abs_top_builddir DiagTalker