Signed-off-by: Mupceet <laiguizhong@huawei.com>
This commit is contained in:
Mupceet 2022-07-04 10:53:12 +08:00
parent 9b98fd1f66
commit 246cd40411
2 changed files with 0 additions and 2 deletions

View File

@ -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,

View File

@ -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) {