mirror of
https://github.com/zhaarey/wrapper.git
synced 2025-07-02 08:09:54 +09:00
Merge pull request #23 from Nirzak/patch-1
Adding unshare back to fix hang issue
This commit is contained in:
@ -35,6 +35,11 @@ int main(int argc, char *argv[], char *envp[]) {
|
|||||||
chmod("/system/bin/linker64", 0755);
|
chmod("/system/bin/linker64", 0755);
|
||||||
chmod("/system/bin/main", 0755);
|
chmod("/system/bin/main", 0755);
|
||||||
|
|
||||||
|
if (unshare(CLONE_NEWPID)) {
|
||||||
|
perror("unshare");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
child_proc = fork();
|
child_proc = fork();
|
||||||
if (child_proc == -1) {
|
if (child_proc == -1) {
|
||||||
perror("fork");
|
perror("fork");
|
||||||
|
Reference in New Issue
Block a user