dovecot-2.2: dsync: If we stop because of a signal, log a warnin...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 16 11:16:55 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/80c1be850fdc
changeset: 18864:80c1be850fdc
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 16 14:12:59 2015 +0300
description:
dsync: If we stop because of a signal, log a warning about it.

diffstat:

 src/doveadm/doveadm-dsync.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a58b3e70fc8a -r 80c1be850fdc src/doveadm/doveadm-dsync.c
--- a/src/doveadm/doveadm-dsync.c	Tue Jun 16 14:12:33 2015 +0300
+++ b/src/doveadm/doveadm-dsync.c	Tue Jun 16 14:12:59 2015 +0300
@@ -383,9 +383,12 @@
 	changed1 = changed2 = TRUE;
 	while (brain1_running || brain2_running) {
 		if (dsync_brain_has_failed(brain) ||
-		    dsync_brain_has_failed(brain2) ||
-		    doveadm_is_killed())
+		    dsync_brain_has_failed(brain2))
 			break;
+		if (doveadm_is_killed()) {
+			i_warning("Killed with signal %d", doveadm_killed_signo());
+			break;
+		}
 
 		i_assert(changed1 || changed2);
 		brain1_running = dsync_brain_run(brain, &changed1);


More information about the dovecot-cvs mailing list