提交 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) ...@@ -216,11 +216,13 @@ static void ReportSysEvent(void)
static void SetServiceBooteventHookMgr(const char *name, int state) static void SetServiceBooteventHookMgr(const char *name, int state)
{ {
#ifndef STARTUP_INIT_TEST
SERVICE_BOOTEVENT_CTX context; SERVICE_BOOTEVENT_CTX context;
context.serviceName = name; context.serviceName = name;
context.reserved = NULL; context.reserved = NULL;
context.state = state; context.state = state;
HookMgrExecute(GetBootStageHookMgr(), INIT_SERVICE_BOOTEVENT, (void*)(&context), NULL); HookMgrExecute(GetBootStageHookMgr(), INIT_SERVICE_BOOTEVENT, (void*)(&context), NULL);
#endif
} }
static void BootEventParaFireByName(const char *paramName) static void BootEventParaFireByName(const char *paramName)
......
...@@ -100,6 +100,7 @@ public: ...@@ -100,6 +100,7 @@ public:
sigemptyset(&set); sigemptyset(&set);
sigaddset(&set, SIGCHLD); sigaddset(&set, SIGCHLD);
sigaddset(&set, SIGSYS);
sigprocmask(SIG_BLOCK, &set, nullptr); sigprocmask(SIG_BLOCK, &set, nullptr);
if (signal(SIGCHLD, Handler) == nullptr) { if (signal(SIGCHLD, Handler) == nullptr) {
std::cout << "signal failed:" << strerror(errno) << std::endl; 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.
先完成此消息的编辑!
想要评论请 注册