A sort of plan for consoles in FreeBSD

Poul-Henning Kamp phk at phk.freebsd.dk
Tue May 30 11:03:57 PDT 2006


In message <20060530135814.A70588 at grasshopper.cs.duke.edu>, Andrew Gallatin wri
tes:
>Poul-Henning Kamp [phk at phk.freebsd.dk] wrote:
>> I would like to redefine the semantics of "/dev/console" as follows:
>> 
>> 	if any console-consumers like xconsole(8) are active
>> 		send output to all console-consumers.
>> 	else if a controlling terminal is available
>> 		send output to controlling terminal (that is /dev/tty)
>> 	else
>> 		send output to syslogd, as if generated by printf(9).
>> 		(but do not actually output to low-level console)
>
>If there is nobody logged in, where do kernel messages from device
>drivers, and panic messages (with helpful things like KDB_TRACE) wind
>up?

These go to the #2 console just like the bootup messages etc.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list