mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 16:24:59 +00:00
Add a /dev/pts filesystem and make PTY allocation dynamic.
You can now open as many PTY pairs as you like. Well, it's actually capped at 8 for now, but it's just a constant and trivial to change. Unregistering a PTY pair is untested because I didn't want to start mucking with that in Terminal right now.
This commit is contained in:
parent
c30e2c8d44
commit
e9b948103d
12 changed files with 124 additions and 20 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "Scheduler.h"
|
||||
#include "PS2MouseDevice.h"
|
||||
#include "PTYMultiplexer.h"
|
||||
#include "DevPtsFS.h"
|
||||
|
||||
//#define SPAWN_GUITEST
|
||||
#define SPAWN_GUITEST2
|
||||
|
@ -95,6 +96,7 @@ static void init_stage2()
|
|||
load_ksyms();
|
||||
|
||||
vfs->mount(ProcFS::the(), "/proc");
|
||||
vfs->mount(DevPtsFS::the(), "/dev/pts");
|
||||
|
||||
Vector<String> environment;
|
||||
environment.append("TERM=ansi");
|
||||
|
@ -167,6 +169,9 @@ void init()
|
|||
auto procfs = ProcFS::create();
|
||||
procfs->initialize();
|
||||
|
||||
auto devptsfs = DevPtsFS::create();
|
||||
devptsfs->initialize();
|
||||
|
||||
Process::initialize();
|
||||
Process::create_kernel_process("init_stage2", init_stage2);
|
||||
Process::create_kernel_process("syncd", [] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue