Ensure we clear the 'starting' flag when cleaning up an svc_t

Prevent crashing/restarting tasks from winding up in the wrong state.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-03-27 16:31:19 +02:00
parent e7b18feca5
commit ba77e4f217
+1 -1
View File
@@ -705,7 +705,7 @@ static void service_cleanup(svc_t *svc)
utmp_set_dead(svc->pid); /* Set DEAD_PROCESS UTMP entry */
svc->oldpid = svc->pid;
svc->start_time = svc->pid = 0;
svc->starting = svc->start_time = svc->pid = 0;
}
/**