Commit 3798d504 authored by Wang Han's avatar Wang Han Committed by John Wu

Kill processes with SIGKILL rather than SIGTERM

parent 95e1e574
...@@ -92,7 +92,7 @@ static void kill_process(const char *name, bool multi = false, ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment