You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Fix stop magiskhide
This commit is contained in:
@@ -20,6 +20,8 @@ static int inotify_fd = -1;
|
||||
|
||||
static void new_zygote(int pid);
|
||||
|
||||
pthread_t monitor_thread;
|
||||
|
||||
/******************
|
||||
* Data structures
|
||||
******************/
|
||||
@@ -281,6 +283,7 @@ void proc_monitor() {
|
||||
sigaddset(&block_set, SIGIO);
|
||||
sigaddset(&block_set, SIGALRM);
|
||||
pthread_sigmask(SIG_UNBLOCK, &block_set, nullptr);
|
||||
monitor_thread = pthread_self();
|
||||
|
||||
struct sigaction act{};
|
||||
act.sa_handler = term_thread;
|
||||
|
||||
Reference in New Issue
Block a user