From c029f39895192e8b70d174e3e8d3b8343a280dbd Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 17 Aug 2019 14:19:18 +0200 Subject: [PATCH] SystemServer: Don't spawn a TTYServer on on /dev/tty0 tty0 receives input while WindowServer is up, which meant that having a shell on tty0 would cause commands typed into Terminal to run twice, once in Terminal's shell, and once on the tty0 shell. Long term we shouldn't send input to any VirtualConsole while the WindowServer is up, so this just fixes the immediate weirdness. :^) --- Servers/SystemServer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Servers/SystemServer/main.cpp b/Servers/SystemServer/main.cpp index 43a688e392..e9548f6a69 100644 --- a/Servers/SystemServer/main.cpp +++ b/Servers/SystemServer/main.cpp @@ -86,7 +86,7 @@ int main(int, char**) start_process("/bin/mount", "-a", highest_prio); wait(nullptr); - start_process("/bin/TTYServer", "tty0", highest_prio, "/dev/tty0"); + // NOTE: We don't start anything on tty0 since that's the "active" TTY while WindowServer is up. start_process("/bin/TTYServer", "tty1", highest_prio, "/dev/tty1"); start_process("/bin/TTYServer", "tty2", highest_prio, "/dev/tty2"); start_process("/bin/TTYServer", "tty3", highest_prio, "/dev/tty3");