提交 f5e9a713 编写于 作者: Y yanmengzhao

add compile flag.

Signed-off-by: Nyanmengzhao <yanmengzhao1@huawei.com>
上级 147227fd
......@@ -86,6 +86,7 @@ int ServiceExec(const Service *service)
}
}
INIT_CHECK_ONLY_ELOG(unsetenv("UV_THREADPOOL_SIZE") == 0, "set UV_THREADPOOL_SIZE error : %d.", errno);
#ifdef SUPPORT_PROFILER_HIDEBUG
void* handle = dlopen("/system/lib/libhidebug.so", RTLD_LAZY);
if (handle == NULL) {
INIT_LOGE("Failed to dlopen libhidebug.so, %s\n", dlerror());
......@@ -98,6 +99,7 @@ int ServiceExec(const Service *service)
return SERVICE_FAILURE;
}
(*initParam)(service->name);
#endif
// L2 Can not be reset env
if (service->extraArgs.argv != NULL && service->extraArgs.count > 0) {
INIT_CHECK_ONLY_ELOG(execv(service->extraArgs.argv[0], service->extraArgs.argv) == 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册