dovecot-1.1: login processes: When shutting down, don't die with...

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 18 21:21:22 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/12d991f2b2da
changeset: 7950:12d991f2b2da
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 18 20:48:48 2008 +0300
description:
login processes: When shutting down, don't die with fd_send() error message.

diffstat:

1 file changed, 6 insertions(+)
src/login-common/master.c |    6 ++++++

diffs (16 lines):

diff -r a0693aec0245 -r 12d991f2b2da src/login-common/master.c
--- a/src/login-common/master.c	Sat Oct 18 20:47:20 2008 +0300
+++ b/src/login-common/master.c	Sat Oct 18 20:48:48 2008 +0300
@@ -64,6 +64,12 @@ void master_request_login(struct client 
 
 	i_assert(auth_pid != 0);
 
+	if (master_fd == -1) {
+		i_assert(closing_down);
+		callback(client, MASTER_LOGIN_STATUS_INTERNAL_ERROR);
+		return;
+	}
+
 	memset(&req, 0, sizeof(req));
 	req.version = MASTER_LOGIN_PROTOCOL_VERSION;
 	req.tag = ++master_tag_counter;


More information about the dovecot-cvs mailing list