Kyle Evans c4a0333b55 vt: restore tty when console is ungrabbed
When a break-to-debugger is triggered, kdb will grab the console and vt(4)
will generally switch back to ttyv0. If one issues a continue from the
debugger, then kdb will ungrab the console and the system rolls on.

This change adds a perhaps minor feature: when we're down to grab == 0 and
if vt actually switched away to ttyv0, switch back to the tty it was
previously on before the console was grabbed.

The justification behind this is that a typical flow is to work in
!ttyv0 to avoid console spam while occasionally dropping to ddb to inspect
system state before returning. This could easily enough be tossed behind
a sysctl or something if it's not generally appreciated, but I anticipate
indifference.

Reviewed by:	ray
Differential Revision:	https://reviews.freebsd.org/D27110
2020-12-31 11:10:11 -06:00
..
2020-10-02 18:18:01 +00:00
2020-06-15 16:35:27 +00:00
2020-02-03 17:35:11 +00:00
2020-12-16 14:48:46 +00:00
2020-11-18 15:25:38 +00:00
2020-04-18 02:52:59 +00:00
2020-12-25 19:47:45 +01:00
2020-07-01 00:33:16 +00:00
2020-02-03 17:35:11 +00:00
2020-03-30 16:04:25 +00:00
2020-12-17 22:53:45 +00:00
2020-03-24 21:28:48 +00:00
2020-12-11 22:52:03 +00:00
2020-04-18 02:53:09 +00:00
2020-11-29 00:35:13 +00:00
2020-08-21 19:34:41 +00:00
2020-08-31 15:03:23 +00:00
2019-12-26 17:25:51 +00:00
2020-09-18 16:48:08 +00:00
2020-02-07 19:53:07 +00:00
2020-11-19 03:59:21 +00:00
2020-09-03 02:17:55 +00:00
2020-12-07 11:18:51 +00:00
2020-08-01 09:40:19 +00:00
2020-12-11 22:51:48 +00:00
2020-10-03 08:31:28 +00:00
2020-12-11 22:51:53 +00:00
2020-10-05 19:58:55 +00:00
2020-10-05 19:58:55 +00:00
2020-09-29 20:46:25 +00:00
2020-12-11 21:40:38 +00:00
2020-12-17 17:11:14 +00:00