Re: [PATCH] VM fix for 2.4.0-test9 & OOM handler

From: Philipp Rumpf (prumpf@parcelfarce.linux.theplanet.co.uk)
Date: Tue Oct 10 2000 - 10:37:43 EST


On Tue, Oct 10, 2000 at 12:30:51PM -0300, Rik van Riel wrote:
> Not killing init when we "should" definately prevents
> embedded systems from auto-rebooting when they should
> do so.
>
> (OTOH, I don't think embedded systems will run into
> this OOM issue too much)

but when they do, they're hard to fix. Think about an elevator control
system with a single process that happens to implement a somewhat broken
version of the elevator algorithm ;)

> > that's what I said. we need to be sure to _get_ a panic() though.
>
> I believe the kernel automatically panic()s when init
> dies ... from kernel/exit.c::do_exit()
>
> if (tsk->pid == 1)
> panic("Attempted to kill init!");

guess who added that code. We still kill init with SIGTERM which doesn't
seem to work though.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:15 EST