mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
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:
1 parent
e7b18feca5
commit
ba77e4f217
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user