dovecot-2.0: doveadm log find: Wait 1 second after logging, to g...

dovecot at dovecot.org dovecot at dovecot.org
Fri May 28 20:12:09 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/f9d1059f81ce
changeset: 11426:f9d1059f81ce
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 28 18:12:05 2010 +0100
description:
doveadm log find: Wait 1 second after logging, to give syslog time to write to files.

diffstat:

 src/doveadm/doveadm-log.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r e61c783ab241 -r f9d1059f81ce src/doveadm/doveadm-log.c
--- a/src/doveadm/doveadm-log.c	Fri May 28 17:39:05 2010 +0100
+++ b/src/doveadm/doveadm-log.c	Fri May 28 18:12:05 2010 +0100
@@ -192,6 +192,9 @@
 	printf("Looking for log files from %s\n", log_dir);
 	cmd_log_find_syslog_files(ctx, log_dir);
 	cmd_log_test(0, NULL);
+
+	/* give syslog some time to write the messages to files */
+	sleep(1);
 	cmd_log_find_syslog_messages(ctx);
 }
 


More information about the dovecot-cvs mailing list