diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-18 15:58:06 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-18 15:58:06 +0200 |
commit | ec65b8db2e48ccbd1804dce594a43a67b1bf5a24 (patch) | |
tree | 6537b376b579e40b17ccf58a08a733531ca61b9a /Kernel/TTY/MasterPTY.cpp | |
parent | 1cca5142afbd76833deedfdb238230ac53424855 (diff) | |
download | serenity-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.cpp | 2 |
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() |