diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
commit | dcc721a95bef6f0d8e6d8775b8efe33e5aecd562 (patch) | |
tree | 66a2774cd0ee294d019efd71d2544c70f42b2842 /tests/imudp_thread_hang.sh | |
parent | Initial commit. (diff) | |
download | rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.tar.xz rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.zip |
Adding upstream version 8.2402.0.upstream/8.2402.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/imudp_thread_hang.sh')
-rwxr-xr-x | tests/imudp_thread_hang.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/imudp_thread_hang.sh b/tests/imudp_thread_hang.sh new file mode 100755 index 0000000..1603d71 --- /dev/null +++ b/tests/imudp_thread_hang.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# the whole point of this test is just to check that imudp +# does not block rsyslog termination. This test was introduced +# after we had a regression where imudp's worker threads were +# not properly terminated. +# Copyright 2014 by Rainer Gerhards, licensed under ASL 2.0 +echo \[imudp_thread_hang\]: a situation where imudp caused a hang +. ${srcdir:=.}/diag.sh init +generate_conf +add_conf ' +$WorkDirectory '$RSYSLOG_DYNNAME'.spool + +module(load="../plugins/imudp/.libs/imudp" threads="3") +input(type="imudp" Address="127.0.0.1" Port="20514") +' +startup +./msleep 1000 +shutdown_immediate +wait_shutdown +exit_test |