提交 1dcc37b2 编写于 作者: C cheng_jinsong

修改ut INIT_SERVICE_BOOTEVENT

Signed-off-by: Ncheng_jinsong <chengjinsong2@huawei.com>
上级 592ec7f7
......@@ -216,11 +216,13 @@ static void ReportSysEvent(void)
static void SetServiceBooteventHookMgr(const char *name, int state)
{
#ifndef STARTUP_INIT_TEST
SERVICE_BOOTEVENT_CTX context;
context.serviceName = name;
context.reserved = NULL;
context.state = state;
HookMgrExecute(GetBootStageHookMgr(), INIT_SERVICE_BOOTEVENT, (void*)(&context), NULL);
#endif
}
static void BootEventParaFireByName(const char *paramName)
......
......@@ -100,6 +100,7 @@ public:
sigemptyset(&set);
sigaddset(&set, SIGCHLD);
sigaddset(&set, SIGSYS);
sigprocmask(SIG_BLOCK, &set, nullptr);
if (signal(SIGCHLD, Handler) == nullptr) {
std::cout << "signal failed:" << strerror(errno) << std::endl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册