public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: R.E.Wolff@BitWizard.nl (Rogier Wolff)
Cc: moloch16@yahoo.com (Paul Powell), linux-kernel@vger.kernel.org
Subject: Re: Linuxrc runs with PID 7
Date: Thu, 1 Feb 2001 10:24:26 +0000 (GMT)	[thread overview]
Message-ID: <200102011024.f11AOQF12603@flint.arm.linux.org.uk> (raw)
In-Reply-To: <200102010901.KAA05572@cave.bitwizard.nl> from "Rogier Wolff" at Feb 01, 2001 10:01:03 AM

Firstly, a /linuxrc script can't be PID 1.  Check the bottom of
do_basic_setup in init/main.c:

                pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);

Since do_basic_setup is already PID 1, /linuxrc won't be.

If you need /linuxrc to be PID 1, don't call it /linuxrc, but /sbin/init,
/etc/init or /bin/init.

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2001-02-01 10:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-31 19:23 Linuxrc runs with PID 7 Paul Powell
2001-01-31 19:29 ` bert hubert
2001-02-01  9:01 ` Rogier Wolff
2001-02-01 10:24   ` Russell King [this message]

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=200102011024.f11AOQF12603@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=R.E.Wolff@BitWizard.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=moloch16@yahoo.com \
    /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