Re: halt: init exits/panic

2005-07-09 Thread Coywolf Qi Hunt
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_

Re: halt: init exits/panic

2005-07-09 Thread DervishD
Hi Nico :) * Nico Schottelius <[EMAIL PROTECTED]> dixit: > What's the 'correct behaviour' of an init system, if someone wants > to shutdown the system? What I do in my vcinit, the last steps I mean, is: reboot(RB_POWER_OFF); /* If halting*/ or reboot(RB_AUTOBOOT); /* If

halt: init exits/panic

2005-07-09 Thread Nico Schottelius
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. Should init simply sleep,