From: Davin McCall Date: Thu, 25 Jan 2018 23:13:35 +0000 (+0000) Subject: Stop the stop timer when a service stops. X-Git-Tag: v0.08~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c3c0c3a4dcc6f79fa865909b4c5b1e52cb8275c;p=oweals%2Fdinit.git Stop the stop timer when a service stops. --- diff --git a/src/proc-service.cc b/src/proc-service.cc index 58768ea..49a1cae 100644 --- a/src/proc-service.cc +++ b/src/proc-service.cc @@ -152,6 +152,9 @@ void process_service::handle_exit_status(int exit_status) noexcept else if (service_state == service_state_t::STOPPING) { // We won't log a non-zero exit status or termination due to signal here - // we assume that the process died because we signalled it. + if (stop_timer_armed) { + restart_timer.stop_timer(event_loop); + } stopped(); } else if (smooth_recovery && service_state == service_state_t::STARTED