public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Pereira Habkost <ehabkost@conectiva.com.br>
To: linux-8086@vger.kernel.org
Subject: Re: Init panics
Date: Wed, 21 Jul 2004 12:28:49 -0300	[thread overview]
Message-ID: <20040721152848.GB12766@duckman.distro.conectiva> (raw)
In-Reply-To: <20040720233400.45011.qmail@web51308.mail.yahoo.com>

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

On Tue, Jul 20, 2004 at 04:34:00PM -0700, Tommy McCabe wrote:
> In line 332 of elkscmd/sys_utils/init.c, there is a
> PANIC that shouldn't be there- it's activated
> regardless of the preceding if statement. But when I
> take it out, init doesn't print out anything. I have
> literally filled every other line of main() with fputs
> and PANICS and init doesn't print out anything.

Have you ever used execv() on unix? If you see some examples of use
of execv(), you will see why the panic is there. Simply because init
should really show a error message (I would print a error string, instead
of just calling PANIC0, however), if it can't run getty, if the execv()
call is successful, the PANIC0 line will not be executed, because the
process is replaced by getty. Is getty included on your disk?

-- 
Eduardo

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-07-21 15:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20 23:34 Init panics Tommy McCabe
2004-07-21 15:28 ` Eduardo Pereira Habkost [this message]
2004-07-21 19:19   ` Tommy McCabe

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=20040721152848.GB12766@duckman.distro.conectiva \
    --to=ehabkost@conectiva.com.br \
    --cc=linux-8086@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox