dovecot-2.0: doveadm auth: If we can't connect to auth socket, d...

dovecot at dovecot.org dovecot at dovecot.org
Wed May 26 21:13:24 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/bb17ad464528
changeset: 11382:bb17ad464528
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 26 19:13:19 2010 +0100
description:
doveadm auth: If we can't connect to auth socket, die instead of hanging.

diffstat:

 src/doveadm/doveadm-auth.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 0918cb06c906 -r bb17ad464528 src/doveadm/doveadm-auth.c
--- a/src/doveadm/doveadm-auth.c	Wed May 26 17:22:26 2010 +0100
+++ b/src/doveadm/doveadm-auth.c	Wed May 26 19:13:19 2010 +0100
@@ -137,7 +137,8 @@
 	client = auth_client_init(auth_socket_path, getpid(), FALSE);
 	auth_client_set_connect_notify(client, auth_connected, input);
 
-	io_loop_run(current_ioloop);
+	if (auth_client_is_connected(client))
+		io_loop_run(current_ioloop);
 
 	auth_client_set_connect_notify(client, NULL, NULL);
 	auth_client_deinit(&client);


More information about the dovecot-cvs mailing list