dovecot-1.2: dict: Set listener socket non-blocking so it doesn'...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 26 01:23:57 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/0c2ba85280d1
changeset: 8681:0c2ba85280d1
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jan 25 18:23:52 2009 -0500
description:
dict: Set listener socket non-blocking so it doesn't hang on accept() when Dovecot is shutting down.

diffstat:

1 file changed, 1 insertion(+)
src/dict/dict-server.c |    1 +

diffs (11 lines):

diff -r be4006078b6b -r 0c2ba85280d1 src/dict/dict-server.c
--- a/src/dict/dict-server.c	Sun Jan 25 17:47:23 2009 -0500
+++ b/src/dict/dict-server.c	Sun Jan 25 18:23:52 2009 -0500
@@ -551,6 +551,7 @@ struct dict_server *dict_server_init(con
 		else
 			i_fatal("net_listen_unix(%s) failed: %m", path);
 	}
+	net_set_nonblock(server->fd, TRUE);
 
 	server->io = io_add(server->fd, IO_READ,
 			    dict_server_listener_accept, server);


More information about the dovecot-cvs mailing list