mirror of
https://gitee.com/openharmony/startup_init
synced 2025-03-02 09:27:23 +00:00
uv
Signed-off-by: Mupceet <laiguizhong@huawei.com>
This commit is contained in:
parent
9b98fd1f66
commit
246cd40411
@ -309,7 +309,6 @@ void EnterServiceSandbox(Service *service)
|
||||
_exit(0x7f); // 0x7f: user specified
|
||||
}
|
||||
}
|
||||
INIT_CHECK_ONLY_ELOG(unsetenv("UV_THREADPOOL_SIZE") == 0, "set UV_THREADPOOL_SIZE error : %d.", errno);
|
||||
#ifndef STARTUP_INIT_TEST
|
||||
char *argv[] = { (char *)"/bin/sh", NULL };
|
||||
INIT_CHECK_ONLY_ELOG(execv(argv[0], argv) == 0,
|
||||
|
@ -81,7 +81,6 @@ int ServiceExec(const Service *service)
|
||||
INIT_ERROR_CHECK(setpriority(PRIO_PROCESS, 0, service->importance) == 0, _exit(0x7f),
|
||||
"setpriority failed for %s, importance = %d, err=%d", service->name, service->importance, errno);
|
||||
}
|
||||
INIT_CHECK_ONLY_ELOG(unsetenv("UV_THREADPOOL_SIZE") == 0, "set UV_THREADPOOL_SIZE error : %d.", errno);
|
||||
OpenHidebug(service->name);
|
||||
// L2 Can not be reset env
|
||||
if (service->extraArgs.argv != NULL && service->extraArgs.count > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user