patch-2.4.22 linux-2.4.22/mm/oom_kill.c

Next file: linux-2.4.22/mm/shmem.c
Previous file: linux-2.4.22/mm/mremap.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/mm/oom_kill.c linux-2.4.22/mm/oom_kill.c
@@ -61,6 +61,10 @@
 
 	if (!p->mm)
 		return 0;
+
+	if (p->flags & PF_MEMDIE)
+		return 0;
+
 	/*
 	 * The memory size of the process is the basis for the badness.
 	 */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)