summaryrefslogtreecommitdiff
path: root/Kernel/DevPtsFS.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-30 18:26:19 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-30 18:47:18 +0100
commitb4e478aa508407b999766efea882e4ec4f2f3b6d (patch)
treef25cc9faa4c7e57a0d46f10532358f176164707d /Kernel/DevPtsFS.cpp
parent027d26cd5d6dbfceef0c2ade42a51068dcdcf43f (diff)
downloadserenity-b4e478aa508407b999766efea882e4ec4f2f3b6d.zip
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.
Diffstat (limited to 'Kernel/DevPtsFS.cpp')
-rw-r--r--Kernel/DevPtsFS.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/DevPtsFS.cpp b/Kernel/DevPtsFS.cpp
index a59e31b649..4deaac06e7 100644
--- a/Kernel/DevPtsFS.cpp
+++ b/Kernel/DevPtsFS.cpp
@@ -1,4 +1,5 @@
-#include "DevPtsFS.h"
+#include <Kernel/DevPtsFS.h>
+#include <Kernel/SlavePTY.h>
#include <Kernel/VirtualFileSystem.h>
#include <AK/StringBuilder.h>