PERFORCE change 152090 for review
Ed Schouten
ed at FreeBSD.org
Tue Oct 28 10:52:10 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=152090
Change 152090 by ed at ed_dull on 2008/10/28 10:51:10
It turns out we have console devices on our system that may have
no TTY associated with them. Don't panic when our primary
console device has no TTY associated.
Affected files ...
.. //depot/projects/mpsafetty/sys/kern/tty.c#62 edit
Differences ...
==== //depot/projects/mpsafetty/sys/kern/tty.c#62 (text+ko) ====
@@ -1769,8 +1769,9 @@
}
sx_sunlock(&tty_list_sx);
+ /* System console has no TTY associated. */
if (dev_console->si_drv1 == NULL)
- panic("Device driver uses name of nonexistent TTY");
+ return (ENXIO);
return (ttydev_open(dev, oflags, devtype, td));
}
More information about the p4-projects
mailing list