Messages in this thread | | | Date | Fri, 15 Mar 2002 15:02:41 +0000 | From | Russell King <> | Subject | Re: [PATCH] 2.4 and 2.5: remove Alt-Sysrq-L |
| |
On Fri, Mar 15, 2002 at 09:54:05AM -0500, Nicholas Berry wrote: > > I distinctly recall it working perfectly OK in around 2.1.50. I had boxen > > where /sbin/init was a shell script which would bring up the interfaces, > > enable routing, and exit. > > That's a different thing, I think. > > That is, 'init exiting' versus 'all the code to prevent init being killed > is bypassed and init is killed'
Very true.
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!");
It is this very test that Alt-SysRQ-L is attempting to bypass which causes the problem.
-- 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/
| |