From: Timo Sirainen Date: Mon, 2 Sep 2013 14:06:49 +0000 (+0300) Subject: lib-master: If net_connect_unix() fails with EAGAIN, point to a wiki link for reasons. X-Git-Tag: 2.2.6~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b52230a2649019208b13dcbc0469eecde80f76d2;p=thirdparty%2Fdovecot%2Fcore.git lib-master: If net_connect_unix() fails with EAGAIN, point to a wiki link for reasons. --- diff --git a/src/lib-master/master-auth.c b/src/lib-master/master-auth.c index 1f105eeefe..057e64d91e 100644 --- a/src/lib-master/master-auth.c +++ b/src/lib-master/master-auth.c @@ -186,7 +186,9 @@ void master_auth_request(struct master_auth *auth, int fd, conn->fd = net_connect_unix_with_retries(auth->path, SOCKET_CONNECT_RETRY_MSECS); if (conn->fd == -1) { - i_error("net_connect_unix(%s) failed: %m", auth->path); + i_error("net_connect_unix(%s) failed: %m%s", + auth->path, errno != EAGAIN ? "" : + " - http://wiki2.dovecot.org/SocketUnavailable"); master_auth_connection_deinit(&conn); return; } diff --git a/src/lib-master/master-login.c b/src/lib-master/master-login.c index 5988bbec32..936c7c52a4 100644 --- a/src/lib-master/master-login.c +++ b/src/lib-master/master-login.c @@ -307,8 +307,9 @@ static int master_login_postlogin(struct master_login_client *client, fd = net_connect_unix_with_retries(login->postlogin_socket_path, 1000); if (fd == -1) { - i_error("net_connect_unix(%s) failed: %m", - login->postlogin_socket_path); + i_error("net_connect_unix(%s) failed: %m%s", + login->postlogin_socket_path, errno != EAGAIN ? "" : + " - http://wiki2.dovecot.org/SocketUnavailable"); return -1; }