From: Timo Sirainen Date: Mon, 27 Oct 2014 18:24:34 +0000 (+0200) Subject: master: Don't send broken BYE notifications to log process. X-Git-Tag: 2.2.16.rc1~275 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=451391ab781733c8d27fa73d64231a0d90c3748c;p=thirdparty%2Fdovecot%2Fcore.git master: Don't send broken BYE notifications to log process. --- diff --git a/src/master/service-log.c b/src/master/service-log.c index 765be6980d..b1a10fdb93 100644 --- a/src/master/service-log.c +++ b/src/master/service-log.c @@ -55,6 +55,11 @@ service_process_write_log_bye(int fd, struct service_process *process) { 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));