lkml.org 
[lkml]   [2005]   [Oct]   [4]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateTue, 4 Oct 2005 09:30:07 +0200
FromNico Schottelius <>
SubjectRe: halt: init exits/panic
Sorry for the delay.

Coywolf Qi Hunt [Sun, Jul 10, 2005 at 01:09:22AM +0800]:
> 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?

"Attempted to kill init!"

--> Panic.

Nico


-- 
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-10-04 05:32    [W:0.634 / U:0.070 seconds]
©2003-2008 Jasper Spaans