# HG changeset patch # User Timo Sirainen # Date 1224352220 -10800 # Node ID 6f2bb9f58804302dceba6e3e640010fd3ba3e9c1 # Parent 9ed4ecd4a866181fe9cc554e6dfd7cc68947c5fd login processes: When shutting down, don't die with fd_send() error message. diff -r 9ed4ecd4a866 -r 6f2bb9f58804 src/login-common/master.c --- a/src/login-common/master.c Sat Oct 18 20:26:35 2008 +0300 +++ b/src/login-common/master.c Sat Oct 18 20:50:20 2008 +0300 @@ -70,6 +70,16 @@ i_assert(auth_pid != 0); + if (master_fd == -1) { + struct master_login_reply reply; + + i_assert(closing_down); + memset(&reply, 0, sizeof(reply)); + reply.status = MASTER_LOGIN_STATUS_INTERNAL_ERROR; + callback(client, &reply); + return; + } + data = i_stream_get_data(client->input, &size); cmd_tag_size = client->auth_command_tag == NULL ? 0 : strlen(client->auth_command_tag);