Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba60e2b9 authored by Charan Teja Reddy's avatar Charan Teja Reddy Committed by Isaac J. Manjarres
Browse files

mm: reap tasks only killed by low memory killer



Reap tasks that are killed by ulmk only.

Change-Id: I4af044b3b8fb5fe1dcef6bac70c475cf949d0505
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
[isaacm@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent ad8b0e3f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1409,6 +1409,7 @@ 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)
			if (!strcmp(current->comm, ULMK_MAGIC))
				add_to_oom_reaper(p);
	}