summaryrefslogtreecommitdiffstats
path: root/tests/asynwr_deadlock2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asynwr_deadlock2.sh')
-rwxr-xr-xtests/asynwr_deadlock2.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/asynwr_deadlock2.sh b/tests/asynwr_deadlock2.sh
index 34d37d48..1190f67a 100755
--- a/tests/asynwr_deadlock2.sh
+++ b/tests/asynwr_deadlock2.sh
@@ -60,7 +60,8 @@ source $srcdir/diag.sh startup asynwr_deadlock2.conf
# send 20000 messages, each close to 2K (non-randomized!), so that we can fill
# the buffers and hopefully run into the "deadlock".
source $srcdir/diag.sh tcpflood -m20000 -d1800 -P129 -i1 -f5
-# sleep is important! need to make sure the instance is inactive
+# the sleep below is needed to prevent too-early termination of the tcp listener
+sleep 1
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
source $srcdir/diag.sh wait-shutdown # and wait for it to terminate
cat rsyslog.out.*.log > rsyslog.out.log