mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Deallocate PTY's when they close.
This required a fair bit of plumbing. The CharacterDevice::close() virtual will now be closed by ~FileDescriptor(), allowing device implementations to do custom cleanup at that point. One big problem remains: if the master PTY is closed before the slave PTY, we go into crashy land.
This commit is contained in:
parent
027d26cd5d
commit
b4e478aa50
19 changed files with 104 additions and 12 deletions
|
@ -142,6 +142,7 @@ void init()
|
|||
gdt_init();
|
||||
idt_init();
|
||||
|
||||
PTYMultiplexer::initialize_statics();
|
||||
VFS::initialize_globals();
|
||||
vfs = new VFS;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue