dovecot-2.1: master: Assert-crashfix when service process limit ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 25 22:48:57 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/1dd992f75906
changeset: 13644:1dd992f75906
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 25 22:58:48 2011 +0300
description:
master: Assert-crashfix when service process limit was reached.
Introduced by commit fddbb26400d0.

diffstat:

 src/master/service-monitor.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r c9ef7a0f9b44 -r 1dd992f75906 src/master/service-monitor.c
--- a/src/master/service-monitor.c	Tue Oct 25 21:44:38 2011 +0300
+++ b/src/master/service-monitor.c	Tue Oct 25 22:58:48 2011 +0300
@@ -216,6 +216,8 @@
 
 static void service_monitor_listen_pending(struct service *service)
 {
+	i_assert(service->process_avail == 0);
+
 	service_monitor_listen_stop(service);
 	service->listen_pending = TRUE;
 
@@ -297,7 +299,7 @@
 			break;
 		}
 	}
-	if (i > 0 && service->listening) {
+	if (i > 0) {
 		/* we created some processes, they'll do the listening now */
 		service_monitor_listen_stop(service);
 	}


More information about the dovecot-cvs mailing list