Subject: Re: PR 7170 -- init and /dev/console
To: NetBSD Kernel Technical Discussion List <tech-kern@NetBSD.ORG>
From: Bill Studenmund <wrstuden@zembu.com>
List: tech-kern
Date: 04/23/2001 08:45:17
On Sat, 21 Apr 2001, Greg A. Woods wrote:
> I don't think hand crafting a descriptor should be all that much work
> either (though I've not actually tried implementing it, yet :-).
> There's already some crafting of file descriptors for process zero.
That code just sets up a clean, empty set of file descriptors.
> It's also pretty silly that init calls warn() before login_tty() can
> ever be called and thus before stderr is open! ;-) [even though it's
> pretty much impossible for the errors being reported from ever occuring
> from process 1]
The presence of warn() does not mean that init has open file descriptors.
:-) It means that someone who wrote the code assumed it did.
AFAICT, init starts with no open file descriptors.
Take care,
Bill