diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-24 21:23:46 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-24 21:23:46 +0100 |
commit | ccf3fc46188ff52e22fa61f3a787c796141ee552 (patch) | |
tree | 6aa9e15b5331ad7e58839f4fca3ff154987057dd /Kernel | |
parent | 2159d6bf768c591b6b7c92edfdee683f810f6811 (diff) | |
download | serenity-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')
-rw-r--r-- | Kernel/MasterPTY.cpp | 2 |
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) |