From 4bcdc81972157be5ac0265e8fab29617f0caa5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20TH=C3=89BAULT?= Date: Mon, 20 Apr 2026 08:43:31 +0200 Subject: [PATCH] seatd: restore VT_AUTO mode in vt_close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit vt_close is the cleanup counterpart to vt_open. vt_open correctly sets VT_PROCESS mode so that seatd can manage VT switching via signals. However, vt_close was also setting VT_PROCESS (passing true to terminal_set_process_switching), leaving the VT controlled by seatd for no reason. Pass false to restore VT_AUTO mode, letting the kernel manage VT switching again after seatd releases it. Signed-off-by: Quentin THÉBAULT --- seatd/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seatd/seat.c b/seatd/seat.c index d5fb6895ac450135452ba4bb64086d44ae3d7451..154d969fa454663599ecdb519c6970d0120a402f 100644 --- a/seatd/seat.c +++ b/seatd/seat.c @@ -94,7 +94,7 @@ static int vt_close(int vt) { log_errorf("Could not open terminal to clean up VT %d: %s", vt, strerror(errno)); return -1; } - terminal_set_process_switching(ttyfd, true); + terminal_set_process_switching(ttyfd, false); terminal_set_keyboard(ttyfd, true); terminal_set_graphics(ttyfd, false); close(ttyfd);