summaryrefslogtreecommitdiff
path: root/Kernel/TTY/MasterPTY.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-18 15:58:06 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-18 15:58:06 +0200
commitec65b8db2e48ccbd1804dce594a43a67b1bf5a24 (patch)
tree6537b376b579e40b17ccf58a08a733531ca61b9a /Kernel/TTY/MasterPTY.cpp
parent1cca5142afbd76833deedfdb238230ac53424855 (diff)
downloadserenity-ec65b8db2e48ccbd1804dce594a43a67b1bf5a24.zip
Revert "Kernel: Make DoubleBuffer use a KBuffer instead of kmalloc()ing"
This reverts commit 1cca5142afbd76833deedfdb238230ac53424855. This appears to be causing intermittent triple-faults and I don't know why yet, so I'll just revert it to keep the tree in decent shape.
Diffstat (limited to 'Kernel/TTY/MasterPTY.cpp')
-rw-r--r--Kernel/TTY/MasterPTY.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/MasterPTY.cpp b/Kernel/TTY/MasterPTY.cpp
index 5afeec5355..a3caf1b17b 100644
--- a/Kernel/TTY/MasterPTY.cpp
+++ b/Kernel/TTY/MasterPTY.cpp
@@ -81,7 +81,7 @@ bool MasterPTY::can_write_from_slave() const
{
if (m_closed)
return true;
- return m_buffer.space_for_writing();
+ return m_buffer.bytes_in_write_buffer() < 4096;
}
void MasterPTY::close()