# HG changeset patch # User Timo Sirainen # Date 1124051673 -10800 # Node ID 4f7427a5be616c7538bac4ebf98707f33e5d8ac2 # Parent c506ec006de5bf42889b7747a778981686d7dea2 If auth worker socket isn't created yet when we try to connect to it, try for 5 seconds before aborting. (previous fix didn't work) diff -r c506ec006de5 -r 4f7427a5be61 src/auth/auth-worker-server.c --- a/src/auth/auth-worker-server.c Sun Aug 14 22:40:29 2005 +0300 +++ b/src/auth/auth-worker-server.c Sun Aug 14 23:34:33 2005 +0300 @@ -58,13 +58,19 @@ if (fd >= 0) break; - if (errno != EAGAIN) { + if (errno == EAGAIN) { + /* we're busy */ + } else if (errno == ENOENT) { + /* master didn't yet create it? */ + } else { i_fatal("net_connect_unix(%s) failed: %m", worker_socket_path); } - if (errno != ENOENT || try == 5) { - /* busy / broken */ - return NULL; + + if (try == 5) { + i_fatal("net_connect_unix(%s) " + "failed after %d tries: %m", + worker_socket_path, try); } /* not created yet? try again */