The branch main has been updated by dumbbell:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=16b13bd3fd63be56653296ba54956f5526918445

commit 16b13bd3fd63be56653296ba54956f5526918445
Author:     Jean-Sébastien Pédron <dumbb...@freebsd.org>
AuthorDate: 2023-11-24 17:30:34 +0000
Commit:     Jean-Sébastien Pédron <dumbb...@freebsd.org>
CommitDate: 2023-11-24 17:31:33 +0000

    vt(4): Call vd_postswitch callback regardless of the current window
    
    [Why]
    We want the same behavior at the backend level, regardless if we need to
    switch the current window or not.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D42751
---
 sys/dev/vt/vt_core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 3e4db9a1ba30..bfd99665be4a 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -579,8 +579,6 @@ vt_window_switch(struct vt_window *vw)
                 * debugger entry/exit to be equivalent to
                 * successfully try-locking here.
                 */
-               if (curvw == vw)
-                       return (0);
                if (!(vw->vw_flags & (VWF_OPENED|VWF_CONSOLE))) {
                        inside_vt_window_switch = false;
                        return (EINVAL);

Reply via email to