dovecot-2.0: lib-master: Non-listening processes should die when...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 4 19:45:48 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/d43232f22ace
changeset: 9441:d43232f22ace
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 04 12:45:14 2009 -0400
description:
lib-master: Non-listening processes should die when their std-client is destroyed.

diffstat:

1 file changed, 4 insertions(+), 3 deletions(-)
src/lib-master/master-service.c |    7 ++++---

diffs (19 lines):

diff -r cab8f8009456 -r d43232f22ace src/lib-master/master-service.c
--- a/src/lib-master/master-service.c	Thu Jun 04 12:44:37 2009 -0400
+++ b/src/lib-master/master-service.c	Thu Jun 04 12:45:14 2009 -0400
@@ -425,11 +425,12 @@ void master_service_client_connection_de
 	}
 	master_status_update(service);
 
-	if (service->io_status_error == NULL &&
+	if ((service->io_status_error == NULL || service->listeners == NULL) &&
 	    service->master_status.available_count ==
 	    service->total_available_count) {
-		/* master has closed the connection and we have nothing else
-		   to do anymore. */
+		/* we've finished handling all clients, and
+		   a) master has closed the connection
+		   b) there are no listeners (std-client?) */
 		master_service_stop(service);
 	}
 }


More information about the dovecot-cvs mailing list