Implement Zygisk companion process

This commit is contained in:
topjohnwu
2021-10-17 04:36:18 -07:00
parent 6f54c57647
commit d0fc372ecd
8 changed files with 108 additions and 11 deletions

View File

@@ -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;