diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-04-09 18:34:36 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-04-09 18:34:36 +0000 |
commit | 3949fa50202e73ddfd4bc765607232ed95ce5139 (patch) | |
tree | 2ae34588992a2fa8a78f204ef4ea5e649d941d0d | |
parent | d0ad50eb8f516073ceaefae08e2cd521b9b8e1ea (diff) |
Honor the db_console sysctl variable, like PCVT did.
-rw-r--r-- | sys/dev/wscons/wskbd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c index aa10cb1be47..4c252c4ba7c 100644 --- a/sys/dev/wscons/wskbd.c +++ b/sys/dev/wscons/wskbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wskbd.c,v 1.12 2001/03/30 16:38:13 aaron Exp $ */ +/* $OpenBSD: wskbd.c,v 1.13 2001/04/09 18:34:35 aaron Exp $ */ /* $NetBSD: wskbd.c,v 1.38 2000/03/23 07:01:47 thorpej Exp $ */ /* @@ -101,6 +101,8 @@ #include <sys/fcntl.h> #include <sys/vnode.h> +#include <ddb/db_var.h> + #include <dev/wscons/wsconsio.h> #include <dev/wscons/wskbdvar.h> #include <dev/wscons/wsksymdef.h> @@ -1378,7 +1380,7 @@ internal_command(sc, type, ksym, ksym2) switch (ksym) { #ifdef DDB case KS_Cmd_Debugger: - if (sc->sc_isconsole) + if (sc->sc_isconsole && db_console) Debugger(); /* discard this key (ddb discarded command modifiers) */ *type = WSCONS_EVENT_KEY_UP; |