From 3798d5045714e912fdd16f4c38013c6584afe74e Mon Sep 17 00:00:00 2001 From: Wang Han Date: Mon, 26 Apr 2021 14:25:18 +0800 Subject: [PATCH] Kill processes with SIGKILL rather than SIGTERM --- native/jni/magiskhide/hide_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/magiskhide/hide_utils.cpp b/native/jni/magiskhide/hide_utils.cpp index edff96f2a..47396b1dc 100644 --- a/native/jni/magiskhide/hide_utils.cpp +++ b/native/jni/magiskhide/hide_utils.cpp @@ -92,7 +92,7 @@ static void kill_process(const char *name, bool multi = false, bool (*filter)(int, const char *) = proc_name_match<&str_eql>) { crawl_procfs([=](int pid) -> bool { if (filter(pid, name)) { - kill(pid, SIGTERM); + kill(pid, SIGKILL); return multi; } return true;