Skip to content

Commit

Permalink
master: Remove unnecessary service listener start
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sirainen authored and GitLab committed Jan 18, 2017
1 parent e667d5d commit c8ce80f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/master/service-monitor.c
Expand Up @@ -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 =
Expand Down

0 comments on commit c8ce80f

Please sign in to comment.