Messages in this thread | | | Date | Wed, 9 Aug 2000 12:15:36 +0100 | From | Philipp Rumpf <> | Subject | Re: panic/reboot changes (RFC) |
| |
On Tue, Aug 08, 2000 at 05:22:38PM -0400, Josh Huber wrote: > diff -urN linux-2.4.0-test6-pre8/kernel/exit.c linux-2.4.0-test6-pre8-patched/kernel/exit.c > --- linux-2.4.0-test6-pre8/kernel/exit.c Tue Aug 8 15:21:05 2000 > +++ linux-2.4.0-test6-pre8-patched/kernel/exit.c Tue Aug 8 16:10:19 2000 > @@ -437,6 +437,10 @@ > panic("Attempted to kill the idle task!"); > if (tsk->pid == 1) > panic("Attempted to kill init!"); > + > + if(panic_on_oops) > + panic("oops, forcing panic"); > + > tsk->flags |= PF_EXITING; > del_timer_sync(&tsk->real_timer); >
This looks bogus. It means if you set panic_on_oops, the next process calling sys_exit _will_ cause a panic. This belongs into arch/i386/kernel/traps.c: die().
Philipp Rumpf
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |