lkml.org 
[lkml]   [2000]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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/

    \
     
     \ /
      Last update: 2005-03-22 13:58    [W:0.019 / U:60.476 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site