!10 应用启动优化

Merge pull request !10 from changcheng/master
This commit is contained in:
openharmony_ci 2020-10-09 09:33:08 +08:00 committed by Gitee
commit 51a1c65843

View File

@ -98,7 +98,7 @@ int ServiceStart(Service *service)
}
char* argv[] = {service->name, NULL};
char* env[] = {NULL};
char* env[] = {"LD_LIBRARY_PATH=/storage/app/libs", NULL};
if (execve(service->path, argv, env) != 0) {
printf("[Init] service %s execve failed! err %d.\n", service->name, errno);
}