Merge pull request #23 from Nirzak/patch-1

Adding unshare back to fix hang issue
This commit is contained in:
ZHAAREY
2025-04-17 15:03:55 +08:00
committed by GitHub

View File

@ -35,6 +35,11 @@ int main(int argc, char *argv[], char *envp[]) {
chmod("/system/bin/linker64", 0755);
chmod("/system/bin/main", 0755);
if (unshare(CLONE_NEWPID)) {
perror("unshare");
return 1;
}
child_proc = fork();
if (child_proc == -1) {
perror("fork");