mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 05:25:13 +00:00
Kernel+SystemServer: Get rid of two virtual consoles
Having four virtual (text) consoles by default seems really overkill for a system that can't even switch to them anyway (yet!)
This commit is contained in:
parent
2ad0ec325a
commit
9e570d0d6d
Notes:
sideshowbarker
2024-07-19 11:21:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9e570d0d6dc
2 changed files with 0 additions and 10 deletions
|
@ -46,8 +46,6 @@
|
|||
|
||||
VirtualConsole* tty0;
|
||||
VirtualConsole* tty1;
|
||||
VirtualConsole* tty2;
|
||||
VirtualConsole* tty3;
|
||||
KeyboardDevice* keyboard;
|
||||
PS2MouseDevice* ps2mouse;
|
||||
SB16* sb16;
|
||||
|
@ -267,8 +265,6 @@ extern "C" [[noreturn]] void init()
|
|||
VirtualConsole::initialize();
|
||||
tty0 = new VirtualConsole(0, VirtualConsole::AdoptCurrentVGABuffer);
|
||||
tty1 = new VirtualConsole(1);
|
||||
tty2 = new VirtualConsole(2);
|
||||
tty3 = new VirtualConsole(3);
|
||||
VirtualConsole::switch_to(0);
|
||||
|
||||
kprintf("Starting Serenity Operating System...\n");
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define SPAWN_MULTIPLE_VIRTUAL_CONSOLES
|
||||
|
||||
void sigchld_handler(int)
|
||||
{
|
||||
int status = 0;
|
||||
|
@ -101,10 +99,6 @@ int main(int, char**)
|
|||
|
||||
// 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");
|
||||
#ifdef SPAWN_MULTIPLE_VIRTUAL_CONSOLES
|
||||
start_process("/bin/TTYServer", { "tty2" }, highest_prio, "/dev/tty2");
|
||||
start_process("/bin/TTYServer", { "tty3" }, highest_prio, "/dev/tty3");
|
||||
#endif
|
||||
|
||||
// Drop privileges.
|
||||
setgid(100);
|
||||
|
|
Loading…
Add table
Reference in a new issue