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.
This commit is contained in:
Andreas Kling 2019-01-24 21:23:46 +01:00
parent 2159d6bf76
commit ccf3fc4618
Notes: sideshowbarker 2024-07-19 15:57:44 +09:00

View File

@ -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)