summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-02-27 18:24:06 +0000
committermux <mux@FreeBSD.org>2003-02-27 18:24:06 +0000
commitedbd8f786fe2081a98edc021531df96ec6846c18 (patch)
treea931051188101c79a5bbd3aefc499acd130bf0c4 /sys/dev
parentcc7e5e7796f59dbba651372e32b7a27d6dac5b81 (diff)
downloadFreeBSD-src-edbd8f786fe2081a98edc021531df96ec6846c18.zip
FreeBSD-src-edbd8f786fe2081a98edc021531df96ec6846c18.tar.gz
When DDB is in the kernel, unlock VTY switching so that we
don't end up freezing the box. This makes VTY locking useless in the DDB case but a box which is supposed to be physically secure shouldn't compile DDB anyway. Reviewed by: silence on -audit
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/syscons/syscons.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 987e57e..22294db 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -1538,6 +1538,10 @@ sccndbctl(struct consdev *cd, int on)
&& sc_console->smode.mode == VT_AUTO) {
sc_console->sc->cur_scp->status |= MOUSE_HIDDEN;
++debugger; /* XXX */
+#ifdef DDB
+ /* unlock vty switching */
+ sc_console->sc->flags &= ~SC_SCRN_VTYLOCK;
+#endif
sc_switch_scr(sc_console->sc, sc_console->index);
--debugger; /* XXX */
}
OpenPOWER on IntegriCloud