Merge "mm: reap tasks only killed by low memory killer"

This commit is contained in:
qctecmdr 2020-04-11 13:28:33 -07:00 • committed by Gerrit - the friendly Code Review server
commit 8be639b1d4

View file

@ -1409,7 +1409,8 @@ int group_send_sig_info(int sig, struct kernel_siginfo *info,
check_panic_on_foreground_kill(p);
ret = do_send_sig_info(sig, info, p, type);
if (capable(CAP_KILL) && sig == SIGKILL)
add_to_oom_reaper(p);
if (!strcmp(current->comm, ULMK_MAGIC))
add_to_oom_reaper(p);
}
return ret;