dovecot-2.2: master: Don't send broken BYE notifications to log ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 27 18:25:34 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/03889e81929e
changeset: 18031:03889e81929e
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 27 20:24:34 2014 +0200
description:
master: Don't send broken BYE notifications to log process.

diffstat:

 src/master/service-log.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r c77d602d4be4 -r 03889e81929e src/master/service-log.c
--- a/src/master/service-log.c	Mon Oct 27 20:14:47 2014 +0200
+++ b/src/master/service-log.c	Mon Oct 27 20:24:34 2014 +0200
@@ -55,6 +55,11 @@
 {
 	const char *data;
 
+	if (process->service->log_process_internal_fd == -1) {
+		/* another log process was just destroyed */
+		return 0;
+	}
+
 	data = t_strdup_printf("%d %s BYE\n",
 			       process->service->log_process_internal_fd,
 			       dec2str(process->pid));


More information about the dovecot-cvs mailing list