main: switch explicitly to tty1 on soft-reboot

Fixes: #39462
This commit is contained in:
Lennart Poettering
2025-10-29 13:09:20 +01:00
parent 2988bba60f
commit 6fa83be763
2 changed files with 31 additions and 1 deletions
+3 -1
View File
@@ -166,6 +166,8 @@ static inline bool osc_char_is_valid(char c) {
return (unsigned char) c >= 32 && (unsigned char) c < 127;
}
#define VTNR_MAX 63
static inline bool vtnr_is_valid(unsigned n) {
return n >= 1 && n <= 63;
return n >= 1 && n <= VTNR_MAX;
}