提交 7dd670e6 编写于 作者: X xlei1030

解决critical服务重启引起的设备reboot命令死锁问题

Signed-off-by: Nxlei1030 <xionglei6@huawei.com>
Change-Id: Ie49ce2b1d65197388b12c5a3f32c0c456d91bb77
上级 ea98b5a8
......@@ -448,6 +448,7 @@ void ServiceReap(Service *service)
if (CalculateCrashTime(service, service->crashTime, service->crashCount) == false) {
INIT_LOGE("Critical service \" %s \" crashed %d times, rebooting system",
service->name, service->crashCount);
ServiceStop(GetServiceByName("appspawn"));
ExecReboot("reboot");
}
} else if (!(service->attribute & SERVICE_ATTR_NEED_RESTART)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册