]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Remove unnecessary service listener start
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 17 Jan 2017 17:49:39 +0000 (19:49 +0200)
committerGitLab <gitlab@git.dovecot.net>
Wed, 18 Jan 2017 10:15:47 +0000 (12:15 +0200)
The listening was already started later on in the same function. Also
in some cases it would have been started unnecessarily, like when service
was stopped or more processes were created immediately.

src/master/service-monitor.c

index 40db7ebb23afa41aacf9b2909e72daca49b799a1..bb3f04f589cc9e99579b9b64dbd0aec31cb87be0 100644 (file)
@@ -658,11 +658,7 @@ void services_monitor_reap_children(void)
 
                service = process->service;
                if (status == 0) {
-                       /* success */
-                       if (service->listen_pending &&
-                           !service->list->destroying)
-                               service_monitor_listen_start(service);
-                       /* one success resets all failures */
+                       /* success - one success resets all failures */
                        service->have_successful_exits = TRUE;
                        service->exit_failures_in_sec = 0;
                        service->throttle_secs =