All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: bbi5291 <bbi5291@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Does init start with any open files?
Date: Tue, 25 Dec 2012 15:40:21 -0600	[thread overview]
Message-ID: <1356471621.31232.3@driftwood> (raw)
In-Reply-To: <CAMmfjbPKGD28070A0JvMyL02juYW5tuwNmVwrJ-1gFzkNhCuDQ@mail.gmail.com> (from bbi5291@gmail.com on Tue Dec 25 01:38:09 2012)

On 12/25/2012 01:38:09 AM, bbi5291 wrote:
> When the init process is created on system startup, does it have any
> open file descriptors? If so, where do they point?

Last I checked, it worked like this:

If there's a /dev/console in initramfs, stdin, stdout, and stderr will  
point to that. If you select no initramfs, you get one with just  
/dev/console. If you create your own initramfs and don't put  
/dev/console in it, init gets no file descriptors and there's a line  
about it in dmesg.

Rob

      parent reply	other threads:[~2012-12-25 21:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-25  7:38 Does init start with any open files? bbi5291
2012-12-25 11:17 ` Borislav Petkov
2012-12-25 11:25   ` bbi5291
2012-12-25 11:58     ` Borislav Petkov
2012-12-25 13:38 ` Miquel van Smoorenburg
2012-12-25 21:40 ` Rob Landley [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=1356471621.31232.3@driftwood \
    --to=rob@landley.net \
    --cc=bbi5291@gmail.com \
    --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.