mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
Make sure to step state machine when collecting bootstrap tasks
During the runlevel change from S --> 2 the state machine will pause, waiting to collect all S-only tasks/services, before continuing. When an S-only task/service is collected we therefore need to call the state machine again so that it can reassert all conditions properly. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
52ccd6d662
commit
46cef811d6
1 file changed
+2
-1
+2
-1
@@ -720,7 +720,7 @@ void service_monitor(pid_t lost)
|
|||||||
|
|
||||||
if (svc_clean_bootstrap(svc)) {
|
if (svc_clean_bootstrap(svc)) {
|
||||||
_d("collected bootstrap task %s(%d), removing.", svc->cmd, lost);
|
_d("collected bootstrap task %s(%d), removing.", svc->cmd, lost);
|
||||||
return;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
_d("collected %s(%d)", svc->cmd, lost);
|
_d("collected %s(%d)", svc->cmd, lost);
|
||||||
@@ -736,6 +736,7 @@ void service_monitor(pid_t lost)
|
|||||||
svc->pid = 0;
|
svc->pid = 0;
|
||||||
service_step(svc);
|
service_step(svc);
|
||||||
|
|
||||||
|
done:
|
||||||
sm_step(&sm);
|
sm_step(&sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user