dovecot-1.2: dict: Previous changes caused it to fail with "Sock...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 5 14:03:40 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/3718d603f9d0
changeset: 8229:3718d603f9d0
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 05 14:03:35 2008 +0300
description:
dict: Previous changes caused it to fail with "Socket already exists".
diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
src/dict/dict-server.c | 5 ++---
diffs (15 lines):
diff -r c9efd231a97f -r 3718d603f9d0 src/dict/dict-server.c
--- a/src/dict/dict-server.c Sun Oct 05 13:49:29 2008 +0300
+++ b/src/dict/dict-server.c Sun Oct 05 14:03:35 2008 +0300
@@ -524,9 +524,8 @@ struct dict_server *dict_server_init(con
server = i_new(struct dict_server, 1);
server->path = i_strdup(path);
- server->fd = fd;
-
- server->fd = net_listen_unix_unlink_stale(path, 64);
+ server->fd = fd != -1 ? fd :
+ net_listen_unix_unlink_stale(path, 64);
if (server->fd == -1) {
if (errno == EADDRINUSE)
i_fatal("Socket already exists: %s", path);
More information about the dovecot-cvs
mailing list