summaryrefslogtreecommitdiffstats
path: root/tests/diag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diag.sh')
-rwxr-xr-xtests/diag.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/diag.sh b/tests/diag.sh
index 83d5b561..1caf529f 100755
--- a/tests/diag.sh
+++ b/tests/diag.sh
@@ -37,6 +37,9 @@ case $1 in
$srcdir/diag.sh wait-startup $3
;;
'wait-startup') # wait for rsyslogd startup ($2 is the instance)
+ while test ! -f rsyslog$2.pid; do
+ ./msleep 100 # wait 100 milliseconds
+ done
while test ! -f rsyslogd$2.started; do
./msleep 100 # wait 100 milliseconds
done