mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
mm: reap tasks only killed by low memory killer
Reap tasks that are killed by ulmk only. Change-Id: I4af044b3b8fb5fe1dcef6bac70c475cf949d0505 Signed-off-by: Charan Teja Reddy <charante@codeaurora.org> [isaacm@codeaurora.org: resolve trivial merge conflicts] Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
ad8b0e3fc3
commit
ba60e2b9b8
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue