]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Don't start new processes while shutting down.
authorTimo Sirainen <tss@iki.fi>
Sat, 25 Oct 2014 21:08:05 +0000 (00:08 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 25 Oct 2014 21:08:05 +0000 (00:08 +0300)
src/master/service-monitor.c

index 6e0c66f6e17a1b430ecc73d29a51486b8f7bb7a1..a4573bb389ebc5e935bb4660dd03071887764d3f 100644 (file)
@@ -652,7 +652,7 @@ void services_monitor_reap_children(void)
                if (throttle)
                        service_monitor_throttle(service);
                service_stopped = service->status_fd[0] == -1;
-               if (!service_stopped) {
+               if (!service_stopped && !service->list->destroying) {
                        service_monitor_start_extra_avail(service);
                        /* if there are no longer listening processes,
                           start listening for more */