lkml.org 
[lkml]   [2005]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: halt: init exits/panic
    On 7/9/05, Nico Schottelius <nico-kernel@schottelius.org> wrote:
    > Hello!
    >
    > What's the 'correct behaviour' of an init system, if someone wants
    > to shutdown the system?
    >
    > I currently do:
    >
    > - call reboot(RB_POWER_OFF/RB_AUTOBOOT/RB_HALT_SYSTEM)
    > - _exit(0)
    >
    > Is this exit() call wrong? If I do RB_HALT_SYSTEM and _exit(0) after,
    > the kernel panics.

    What the panic shows?
    --
    Coywolf Qi Hunt
    http://ahbl.org/~coywolf/
    -
    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-07-09 19:14    [W:0.022 / U:83.964 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site