mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-21 13:18:36 +00:00
Implement Zygisk companion process
This commit is contained in:
@@ -27,7 +27,7 @@ int fork_no_orphan() {
|
||||
int pid = xfork();
|
||||
if (pid)
|
||||
return pid;
|
||||
prctl(PR_SET_PDEATHSIG, SIGTERM);
|
||||
prctl(PR_SET_PDEATHSIG, SIGKILL);
|
||||
if (getppid() == 1)
|
||||
exit(1);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user