From: David Rientjes Date: Tue, 10 Aug 2010 00:18:49 +0000 (-0700) Subject: oom: avoid sending exiting tasks a SIGKILL X-Git-Tag: v2.6.36-rc1~460 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4358997ae38a1901498d128d6508119d9f318b36;p=pandora-kernel.git oom: avoid sending exiting tasks a SIGKILL It's unnecessary to SIGKILL a task that is already PF_EXITING and can actually cause a NULL pointer dereference of the sighand if it has already been detached. Instead, simply set TIF_MEMDIE so it has access to memory reserves and can quickly exit as the comment implies. Reviewed-by: KAMEZAWA Hiroyuki Signed-off-by: David Rientjes Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed