diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-10-25 14:30:44 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-10-25 14:30:44 +0000 |
commit | 7b870919d0d7c9cb70e9d439338e25230062faa2 (patch) | |
tree | 328920590fe6924761a75dd39bd273ae7ac82bc2 /sys/dev | |
parent | 74308e0816164ec82755a51004f622a445e74110 (diff) |
If the console keyboard goes away, reinit wskbd_console_device.
Will allow future console keyboard attaches to occur.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/wscons/wskbd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c index dbd5b902dee..accd8e064f5 100644 --- a/sys/dev/wscons/wskbd.c +++ b/sys/dev/wscons/wskbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wskbd.c,v 1.26 2001/09/30 05:49:58 mickey Exp $ */ +/* $OpenBSD: wskbd.c,v 1.27 2001/10/25 14:30:43 drahn Exp $ */ /* $NetBSD: wskbd.c,v 1.38 2000/03/23 07:01:47 thorpej Exp $ */ /* @@ -547,6 +547,11 @@ wskbd_detach(self, flags) } #endif + if (sc->sc_isconsole) { + KASSERT(wskbd_console_device == sc); + wskbd_console_device = NULL; + } + evar = &sc->sc_events; if (evar->io) { s = spltty(); |