]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Assert-crashfix when service process limit was reached.
authorTimo Sirainen <tss@iki.fi>
Tue, 25 Oct 2011 19:58:48 +0000 (22:58 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 25 Oct 2011 19:58:48 +0000 (22:58 +0300)
Introduced by commit fddbb26400d0.

src/master/service-monitor.c

index 3fbad236cb6488f38b2e2a979282bc7a28a189ec..d9d3309f806d3deffdfb844dfcbdc15a2209c75a 100644 (file)
@@ -216,6 +216,8 @@ static void service_drop_timeout(struct service *service)
 
 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 @@ static void service_monitor_start_extra_avail(struct service *service)
                        break;
                }
        }
-       if (i > 0 && service->listening) {
+       if (i > 0) {
                /* we created some processes, they'll do the listening now */
                service_monitor_listen_stop(service);
        }