Subject: Re: kern/7170
To: David Laight <>
From: Greg A. Woods <>
List: netbsd-bugs
Date: 12/05/2003 17:19:17
[ On Thursday, December 4, 2003 at 10:39:31 (-0500), Todd Vierling wrote: ]
> Subject: Re: kern/7170
> (I wonder why passing fds to init is apparently such a bad thing.)

I've wondered the same for nearly forever (well ever since I learned
that it didn't actually work that way).

After all every other process on the planet gets its stdio handed to it
by default, and certainly the kernel is in the very best possible
position to do this for "init" 100% correctly and 100% of the time.  :-)

BTW, when I first discovered that BSD's init used /dev/console as the
controlling tty for /etc/rc I wondered exactly what traditional unix did
and was somewhat surprised to see that it did this (v7):

                open("/", 0);
                execl(shell, shell, runc, (char *)0);


						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <>
Planix, Inc. <>          Secrets of the Weird <>