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, return to normal processing or exit? Sincerly, Nico -- Keep it simple & stupid, use what's available. Please use pgp encryption: 8D0E 27A4 is my id. http://nico.schotteli.us | http://linux.schottelius.org
Attachment:
pgpTlbFVsabaw.pgp
Description: PGP signature
- Follow-Ups:
- Re: halt: init exits/panic
- From: Coywolf Qi Hunt <[email protected]>
- Re: halt: init exits/panic
- From: DervishD <[email protected]>
- Re: halt: init exits/panic
- Prev by Date: Re: Realtime Preemption, 2.6.12, Beginners Guide?
- Next by Date: Re: halt: init exits/panic
- Previous by thread: [patch] reduce stack footprint of functions in drivers/net/sk98lin/skgepnmi.c
- Next by thread: Re: halt: init exits/panic
- Index(es):