diff --git a/Kernel/TTY/MasterPTY.cpp b/Kernel/TTY/MasterPTY.cpp index f4c8652a8b..6385f0f40a 100644 --- a/Kernel/TTY/MasterPTY.cpp +++ b/Kernel/TTY/MasterPTY.cpp @@ -96,7 +96,7 @@ bool MasterPTY::can_write_from_slave() const { if (m_closed) return true; - return m_buffer->space_for_writing(); + return m_buffer->space_for_writing() >= 2; } ErrorOr MasterPTY::close()