From ccf3fc46188ff52e22fa61f3a787c796141ee552 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 24 Jan 2019 21:23:46 +0100 Subject: [PATCH] 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. --- Kernel/MasterPTY.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)