dovecot-2.0: master: Fixed crash on deinit (maybe also on reload).
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 18 18:28:55 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/334d9b18f437
changeset: 11577:334d9b18f437
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 18 16:27:45 2010 +0100
description:
master: Fixed crash on deinit (maybe also on reload).
diffstat:
src/master/service.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 99d56a37edd0 -r 334d9b18f437 src/master/service.c
--- a/src/master/service.c Thu Jun 17 21:09:24 2010 +0100
+++ b/src/master/service.c Fri Jun 18 16:27:45 2010 +0100
@@ -620,6 +620,10 @@
switch ((*listenerp)->type) {
case SERVICE_LISTENER_UNIX:
case SERVICE_LISTENER_INET:
+ if ((*listenerp)->fd != -1) {
+ /* already stopped listening */
+ break;
+ }
while ((fd = net_accept((*listenerp)->fd,
NULL, NULL)) >= 0)
(void)close(fd);
More information about the dovecot-cvs
mailing list