Re: [PATCH] 2.4 and 2.5: remove Alt-Sysrq-L

Kasper Dupont (kasperd@daimi.au.dk)
Tue, 19 Mar 2002 09:00:21 +0100


Russell King wrote:
>
> With all recent kernels, init exiting causes the last of these to trigger:
>
> NORET_TYPE void do_exit(long code)
> {
> struct task_struct *tsk = current;
>
> if (in_interrupt())
> panic("Aiee, killing interrupt handler!");
> if (!tsk->pid)
> panic("Attempted to kill the idle task!");
> if (tsk->pid == 1)
> panic("Attempted to kill init!");

Why actually panic because of an attempt to kill init?

Of course a message should be printed, but after that
couldn't do_exit enter a loop where it just handles
signals and zombies?

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:razor-report@daimi.au.dk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/