]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prevent yet another staircase effect bug in the console device.
authored <ed@FreeBSD.org>
Fri, 12 Jun 2009 20:29:55 +0000 (20:29 +0000)
committered <ed@FreeBSD.org>
Fri, 12 Jun 2009 20:29:55 +0000 (20:29 +0000)
commit0e4ff69bbaf0a890087aaa913e3afc146145e5d5
tree354a7f3c65fdf1795e12377bdc382045977c2cbb
parent9d4e4b79d95a7b4decd7373927c0ef8bbb2750d0
Prevent yet another staircase effect bug in the console device.

Even though I thought I fixed the staircase issue (and I was no longer
able to reproduce it), I got some reports of the issue still being
there. It turns out the staircase effect still occurred when
/dev/console was kept open while killing the getty on the same TTY
(ttyv0).

For some reason I can't figure out how the old TTY code dealt with that,
so I assume the issue has always been there. I only exposed it more by
merging consolectl with ttyv0, which means that the issue was present,
even on systems without a serial console.

I'm now marking the console device as being closed when closing the
regular TTY device node. This means that when the getty shuts down,
init(8) will open /dev/console, which means the termios attributes will
always be reset in this case.
sys/kern/tty.c