From: Nico Schottelius <nico-kernel@schottelius.org>
To: coywolf@lovecn.org
Cc: Nico Schottelius <nico-kernel@schottelius.org>,
linux-kernel@vger.kernel.org
Subject: Re: halt: init exits/panic
Date: Tue, 4 Oct 2005 09:37:40 +0200 [thread overview]
Message-ID: <20051004073740.GA1498@schottelius.org> (raw)
In-Reply-To: <2cd57c9005070910091f1051f7@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 883 bytes --]
Coywolf Qi Hunt [Sun, Jul 10, 2005 at 01:09:22AM +0800]:
> On 7/9/05, Nico Schottelius <nico-kernel@schottelius.org> 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?
To be fully correct:
"Kernel panic - not syncing: Attempted to kill init" (from the last time
I tried, 2.6.13.2)
Perhaps _exit(0) is not correct for an init system?
This at least explains why it always looks like nothing is synced.
Nico
--
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
next prev parent reply other threads:[~2005-10-04 7:37 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
2005-07-09 17:09 ` Coywolf Qi Hunt
2005-10-04 7:30 ` Nico Schottelius
2005-10-04 7:37 ` Nico Schottelius [this message]
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=20051004073740.GA1498@schottelius.org \
--to=nico-kernel@schottelius.org \
--cc=coywolf@lovecn.org \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.