Kill processes with SIGKILL rather than SIGTERM

This commit is contained in:
Wang Han 2021-04-26 14:25:18 +08:00 committed by John Wu
parent 95e1e57407
commit 3798d50457
1 changed files with 1 additions and 1 deletions

View File

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