summaryrefslogtreecommitdiff
path: root/Kernel/MasterPTY.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-24 21:23:46 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-24 21:23:46 +0100
commitccf3fc46188ff52e22fa61f3a787c796141ee552 (patch)
tree6aa9e15b5331ad7e58839f4fca3ff154987057dd /Kernel/MasterPTY.cpp
parent2159d6bf768c591b6b7c92edfdee683f810f6811 (diff)
downloadserenity-ccf3fc46188ff52e22fa61f3a787c796141ee552.zip
TTY: MasterPTY's are always writable when open.
This should probably have some limitations eventually, but for now let's just say we always accept data for shoveling over to SlavePTY.
Diffstat (limited to 'Kernel/MasterPTY.cpp')
-rw-r--r--Kernel/MasterPTY.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/MasterPTY.cpp b/Kernel/MasterPTY.cpp
index 7cb6f8b687..079f630afb 100644
--- a/Kernel/MasterPTY.cpp
+++ b/Kernel/MasterPTY.cpp
@@ -38,7 +38,7 @@ bool MasterPTY::can_read(Process&) const
bool MasterPTY::can_write(Process&) const
{
- return m_buffer.bytes_in_write_buffer() < 4096;
+ return true;
}
void MasterPTY::on_slave_write(const byte* data, size_t size)