diff src/lib-master/master-login-auth.c @ 12165:acd30d4601f9

lib-master: If auth server is restarted, still log a warning about aborted auth request.
author Timo Sirainen <tss@iki.fi>
date Thu, 23 Sep 2010 19:00:31 +0100
parents 16330c0c8ef4
children f38e4e1465c8
line wrap: on
line diff
--- a/src/lib-master/master-login-auth.c	Thu Sep 23 18:39:22 2010 +0100
+++ b/src/lib-master/master-login-auth.c	Thu Sep 23 19:00:31 2010 +0100
@@ -373,6 +373,8 @@
 
 	if (auth->auth_server_pid != req->auth_pid) {
 		/* auth server was restarted. don't even attempt a login. */
+		i_warning("Auth server restarted (pid %u -> %u), aborting auth",
+			  req->auth_pid, auth->auth_server_pid);
 		master_login_auth_request_remove(auth, req);
 		req->callback(NULL, MASTER_AUTH_ERRMSG_INTERNAL_FAILURE,
 			      req->context);