summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-06-06 18:49:42 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-06-06 18:49:42 +0200
commitd5585524b7c749c1bbecf1e68b06269be82583e2 (patch)
tree221ec5ef9f07ceef07c7d6ec0af5675d5edf56a6 /tools
parent4224ee66376f1a8e914e63f402c71de29180e21c (diff)
parent27360bb33ff5e87a3852ebe2673170ebea168421 (diff)
downloadrsyslog-d5585524b7c749c1bbecf1e68b06269be82583e2.tar.gz
rsyslog-d5585524b7c749c1bbecf1e68b06269be82583e2.tar.xz
rsyslog-d5585524b7c749c1bbecf1e68b06269be82583e2.zip
Merge branch 'beta'
Diffstat (limited to 'tools')
-rw-r--r--tools/syslogd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 8a04fb6b..82ad79b9 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -848,6 +848,11 @@ die(int sig)
errno = 0;
logmsgInternal(NO_ERRCODE, LOG_SYSLOG|LOG_INFO, (uchar*)buf, 0);
}
+ /* we sleep for 50ms to give the queue a chance to pick up the exit message;
+ * otherwise we have seen cases where the message did not make it to log
+ * files, even on idle systems.
+ */
+ srSleep(0, 50);
/* drain queue (if configured so) and stop main queue worker thread pool */
DBGPRINTF("Terminating main queue...\n");