mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-13 13:47:44 +02:00
Kill processes with SIGKILL rather than SIGTERM
This commit is contained in:
@ -92,7 +92,7 @@ static void kill_process(const char *name, bool multi = false,
|
|||||||
bool (*filter)(int, const char *) = proc_name_match<&str_eql>) {
|
bool (*filter)(int, const char *) = proc_name_match<&str_eql>) {
|
||||||
crawl_procfs([=](int pid) -> bool {
|
crawl_procfs([=](int pid) -> bool {
|
||||||
if (filter(pid, name)) {
|
if (filter(pid, name)) {
|
||||||
kill(pid, SIGTERM);
|
kill(pid, SIGKILL);
|
||||||
return multi;
|
return multi;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user