diff options
author | yokota <yokota@FreeBSD.org> | 2001-06-30 09:10:00 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 2001-06-30 09:10:00 +0000 |
commit | b6823c37643e5db8e2302c5b397253b4e9c47211 (patch) | |
tree | 0e80a141c7cc0b18125a2a9a847fdea98f9389a0 /sys/dev | |
parent | b83ccf3fae10b911f3b875f37b8c1c800b44ba09 (diff) | |
download | FreeBSD-src-b6823c37643e5db8e2302c5b397253b4e9c47211.zip FreeBSD-src-b6823c37643e5db8e2302c5b397253b4e9c47211.tar.gz |
If we are in DDB, don't switch to a vty in the VT_PROCESS mode.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/syscons/syscons.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 8a4a226..ed441bd 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -2233,6 +2233,7 @@ sc_switch_scr(sc_softc_t *sc, u_int next_scr) /* * Is the wanted vty open? Don't allow switching to a closed vty. + * If we are in DDB, don't switch to a vty in the VT_PROCESS mode. * Note that we always allow the user to switch to the kernel * console even if it is closed. */ @@ -2244,6 +2245,11 @@ sc_switch_scr(sc_softc_t *sc, u_int next_scr) DPRINTF(5, ("error 2, requested vty isn't open!\n")); return EINVAL; } + if ((debugger > 0) && (SC_STAT(tp->t_dev)->smode.mode == VT_PROCESS)) { + splx(s); + DPRINTF(5, ("error 3, requested vty is in the VT_PROCESS mode\n")); + return EINVAL; + } } /* this is the start of vty switching process... */ |