Revert my previous change, because it reintroduces an old regression.

Because our rc scripts also open the /etc/ttyv* nodes, it revokes the
console, preventing startup messages from being displayed.

I really have to think about this. Maybe we should just give the console
its own TTY and let it build on top of other TTYs. I'm still not sure
what to do with input handling there.
This commit is contained in:
ed 2009-06-12 21:21:17 +00:00
parent 01a6f1d14b
commit 66c6fddb34

View File

@ -322,14 +322,14 @@ ttydev_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
* console.
*/
MPASS((tp->t_flags & TF_OPENED) != TF_OPENED);
if (dev == dev_console) {
if (dev == dev_console)
tp->t_flags &= ~TF_OPENED_CONS;
if (tp->t_flags & TF_OPENED) {
tty_unlock(tp);
return (0);
}
} else {
tp->t_flags &= ~TF_OPENED;
else
tp->t_flags &= ~(TF_OPENED_IN|TF_OPENED_OUT);
if (tp->t_flags & TF_OPENED) {
tty_unlock(tp);
return (0);
}
/*