strange behaviour with /sbin/init and serial console
Ed Schouten
ed at 80386.nl
Fri Oct 31 12:06:15 PDT 2008
Hello Theirry,
* Thierry Herbelot <thierry.herbelot at free.fr> wrote:
> with the following patch on /sbin/init, I have two different behaviours
> depending on the console type (on a i386/32 PC) :
> - on a video console, I see the expected two messages,
> - on a serial console, the messages are not displayed (init silently finishes
> its job and gets to start /etc/rc and everything)
>
> I assume that the writev system call is implemented in
> src/sys/kern/tty_cons.c::cnwrite(), but I could not parse the code to find an
> explanation.
>
> any taker ?
>
> TfH
>
> PS : this is initially for a RELENG_6 machine, but the code is quite similar
> under RELENG_7 or Current
Any data written to /dev/console is not multiplexed to all console
devices, but only the first active device in the list. The reason behind
this, is because it adds a real lot of complexity to the console code,
especially related to polling and reading on /dev/console.
This weekend I'm going to commit a replacement implementation of
/dev/console, which also has this restriction.
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20081031/d38bde51/attachment.pgp
More information about the freebsd-hackers
mailing list