lkml.org 
[lkml]   [2012]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Does init start with any open files?
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

\
 
 \ /
  Last update: 2012-12-25 23:01    [W:0.055 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site