public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: DervishD <lkml@dervishd.net>
To: Nico Schottelius <nico-kernel@schottelius.org>,
	linux-kernel@vger.kernel.org
Subject: Re: halt: init exits/panic
Date: Sat, 9 Jul 2005 16:26:57 +0200	[thread overview]
Message-ID: <20050709142657.GA166@DervishD> (raw)
In-Reply-To: <20050709151227.GM1322@schottelius.org>

    Hi Nico :)

 * Nico Schottelius <nico-kernel@schottelius.org> 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 rebooting */

    exit(EXIT_SUCCESS);

    And my vcinit doesn't panic ;)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...

  reply	other threads:[~2005-07-09 14:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-09 15:12 halt: init exits/panic Nico Schottelius
2005-07-09 14:26 ` DervishD [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050709142657.GA166@DervishD \
    --to=lkml@dervishd.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nico-kernel@schottelius.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox