Sorry for the delay. Coywolf Qi Hunt [Sun, Jul 10, 2005 at 01:09:22AM +0800]: > On 7/9/05, Nico Schottelius <[email protected]> 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.
Attachment:
signature.asc
Description: Digital signature
- Prev by Date: Linux kernel hooks
- Next by Date: 2.4.x: big problems with md over sata
- Previous by thread: Linux kernel hooks
- Next by thread: Re: halt: init exits/panic
- Index(es):