mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
@@ -1,4 +1,5 @@
|
||||
#include "DevPtsFS.h"
|
||||
#include <Kernel/DevPtsFS.h>
|
||||
#include <Kernel/SlavePTY.h>
|
||||
#include <Kernel/VirtualFileSystem.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user