lkml.org 
[lkml]   [2002]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.4 and 2.5: remove Alt-Sysrq-L
On Tue, Mar 19, 2002 at 09:00:21AM +0100, Kasper Dupont wrote:
> 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?

Examine the LKML archive around 23rd December 2001, where Alan Cox wrote:

| pid1 ends up trying to kill pid1 and it goes deeply down the toilet from
| that point onwards. The Unix traditional world reboots when pid 1 dies.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [from the cache]
©2003-2011 Jasper Spaans