From: Frank T Lofaro <fl0p+@andrew.cmu.edu> Subject: /dev/console problem (file descriptor refers to VC at time of Date: Sun, 9 May 1993 08:38:02 -0400
I noticed a problem with /dev/console handling when I was configuring
syslogd to log both to the console and a file (you do this by putting separate
entries on different lines). It always logged to the VC where I started syslogd,
or /dev/tty1 if I started it from /etc/rc. It isn't syslogd's fault, I wrote a
test program which does an open() of /dev/console (char device 4/0) and then
while (1)'s a write to the fd. It keeps outputting on the VC it was started
from, and the is no output on other VC's when I switch to them. I think it
would be better if write()'s to /dev/console outputted to the VC at the time
of the write(), not the open().