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. :^)
This commit is contained in:
Andreas Kling 2019-08-17 14:19:18 +02:00
parent da7ae52eee
commit c029f39895
Notes: sideshowbarker 2024-07-19 12:38:35 +09:00

View file

@ -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");