Magisk/native/jni/core
topjohnwu e7155837d7 Make sure magisk daemon won't get killed by init
According to this comment in #1880:
https://github.com/topjohnwu/Magisk/issues/1880#issuecomment-546657588

If Linux recycled our PPID, and coincidentally the process that reused
the PPID is root, AND init wants to kill the whole process group,
magiskd will get killed as a result.

There is no real way to block a SIGKILL signal, so we simply make sure
our daemon PID is the process group leader by renaming the directory.

Close #1880
2019-10-31 01:57:47 -04:00
..
applet_stub.cpp Support building individual applets 2019-05-30 21:17:58 -07:00
applets.cpp Revert "Drop API 17 (Android 4.2) support" 2019-10-20 07:13:03 -04:00
bootstages.cpp Fix incorrect link path for /sbin/.core 2019-10-12 01:00:15 -04:00
daemon.cpp Make sure magisk daemon won't get killed by init 2019-10-31 01:57:47 -04:00
db.cpp Introduce component agnostic communication 2019-10-21 13:59:04 -04:00
magisk.cpp Introduce component agnostic communication 2019-10-21 13:59:04 -04:00
scripting.cpp Use raw literals for scripts 2019-10-09 17:38:45 -04:00
socket.cpp Introduce more randomness 2019-07-14 17:42:49 -07:00