public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* halt: init exits/panic
@ 2005-07-09 15:12 Nico Schottelius
  2005-07-09 14:26 ` DervishD
  2005-07-09 17:09 ` Coywolf Qi Hunt
  0 siblings, 2 replies; 7+ messages in thread
From: Nico Schottelius @ 2005-07-09 15:12 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 532 bytes --]

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 #2: Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-04 10:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-09 15:12 halt: init exits/panic Nico Schottelius
2005-07-09 14:26 ` DervishD
2005-07-09 17:09 ` Coywolf Qi Hunt
2005-10-04  7:30   ` Nico Schottelius
2005-10-04  7:37   ` Nico Schottelius
2005-10-04  8:12     ` Coywolf Qi Hunt
2005-10-04 10:55       ` Nico Schottelius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox