[Patch 1/2]: System reconfiguration causing system freeze

This patch fixes a hang when performing a system reconfiguration using
`initctl reload`, `SIGHUP` or running `(f)init q`, which caused Finit
to wait for SIGHUP:able services to stop.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-12-02 13:02:40 +01:00
1 parent a5c5a5c644
commit 4c3e053041
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -430,7 +430,9 @@ void service_stop_dynamic(void)
if (svc_is_removed(svc))
new_state = SVC_HALTED_STATE;
dyn_stop_cnt++;
if (!svc_has_sighup(svc))
dyn_stop_cnt++;
_d("Marking service %s as state %d", svc->cmd, new_state);
service_stop(svc, new_state);
}