Use execve directly

This commit is contained in:
topjohnwu
2024-02-24 01:47:11 -08:00
parent 39dbffadfe
commit db99caf258
3 changed files with 3 additions and 2 deletions

View File

@@ -243,7 +243,7 @@ void BaseInit::exec_init() {
if (xumount2(p.data(), MNT_DETACH) == 0)
LOGD("Unmount [%s]\n", p.data());
}
execv("/init", argv);
execve("/init", argv, environ);
exit(1);
}