forked from sim1222-mirror/wrapper
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
f3b208fabb | |||
cbb7f3f62f | |||
662866981e |
@ -8,6 +8,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <sched.h>
|
||||
|
||||
pid_t child_proc = -1;
|
||||
|
||||
@ -35,6 +36,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");
|
||||
|
Reference in New Issue
Block a user