diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-30 18:26:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-30 18:47:18 +0100 |
commit | b4e478aa508407b999766efea882e4ec4f2f3b6d (patch) | |
tree | f25cc9faa4c7e57a0d46f10532358f176164707d /Kernel/DevPtsFS.cpp | |
parent | 027d26cd5d6dbfceef0c2ade42a51068dcdcf43f (diff) | |
download | serenity-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.cpp | 3 |
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> |