未验证 提交 e3fa84ad 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !385 from 熊磊/master_cc
......@@ -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.
先完成此消息的编辑!
想要评论请 注册