1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Allow character devices to block write attempts until there is more space.

This commit is contained in:
Andreas Kling 2019-01-15 09:17:22 +01:00
parent 49b63281a0
commit e452303c66
21 changed files with 39 additions and 7 deletions

View file

@ -47,6 +47,11 @@ bool TTY::has_data_available_for_reading(Process&) const
return !m_buffer.is_empty();
}
bool TTY::can_write(Process&) const
{
return true;
}
void TTY::emit(byte ch)
{
if (should_generate_signals()) {