Subject: Re: Null console (was: Re: Help me defend NetBSD's honor!)
To: Quentin Garnier <firstname.lastname@example.org>
From: Martin Husemann <email@example.com>
Date: 03/10/2003 13:44:33
On Mon, Mar 10, 2003 at 01:19:15PM +0100, Quentin Garnier wrote:
> FWIW, here's a patch.
> It actually took a lot more that 10 minutes, because
> if the kernel part is indeed trivial, when init starts it needs some kind
> of tty emulation (TIOCSCTTY for libutil's login_tty), and just returning 0
> for that ioctl is not enough (setting s_ttyp to non NULL prevent a
> segfault later when the very first process that init creates exits).
Ouch. Depending on aplication you could consider running the whole application
as init-replacement and just avoiding touching the console - but your solution
of course looks better.