From ba839bf17200f51a9860940910536fba2282161e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 25 Jun 2013 11:18:13 +0200 Subject: testbench: "prevent" memleaks due to race imdiag may not have enough time to properly terminate when the shutdown request is made. Thus we give it a little headroom. Note that this does not address a real issue inside the code - at most, it looks like a memory leak, but one where the whole process is immediately destructed. However, it is an annouance for the testbench. Note that the race may still occur based on circumstances, but now is much less likely. --- tests/diag.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/diag.sh b/tests/diag.sh index 2fdcbfb9..7883d93b 100755 --- a/tests/diag.sh +++ b/tests/diag.sh @@ -109,6 +109,7 @@ case $1 in echo Shutting down instance 2 fi $srcdir/diag.sh wait-queueempty $2 + ./msleep 100 # wait 100 milliseconds kill `cat rsyslog$2.pid` # note: we do not wait for the actual termination! ;; -- cgit v1.2.3