===== mm/oom_kill.c 1.11 vs edited ===== --- 1.11/mm/oom_kill.c Fri Aug 16 10:59:46 2002 +++ edited/mm/oom_kill.c Sat Feb 22 17:31:49 2003 @@ -61,11 +61,16 @@ static int badness(struct task_struct *p if (!p->mm) return 0; + + if (p->flags & PF_MEMDIE) + return 0; + /* * Never kill init */ if (p->pid == 1) return 0; + /* * The memory size of the process is the basis for the badness. */