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

Commit f9b1a9b7 authored by Charan Teja Reddy's avatar Charan Teja Reddy
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>
parent 955a96f0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1372,6 +1372,7 @@ int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p,
		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);
			ulmk_update_last_kill();
		}