diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-05 13:09:01 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-05 13:09:01 +0100 |
commit | 0669ef8977e04fd5c76077d0b6d3ad44c0f709b6 (patch) | |
tree | 3d2cae5cfffbdb27ef21e63781c55688f00b61ab /Kernel/VirtualConsole.cpp | |
parent | 2a0700af9ac4917c0f653350717f033621db9235 (diff) | |
download | serenity-0669ef8977e04fd5c76077d0b6d3ad44c0f709b6.zip |
Kernel: Writing to a slave PTY should yield EIO if the master is closed.
Diffstat (limited to 'Kernel/VirtualConsole.cpp')
-rw-r--r-- | Kernel/VirtualConsole.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/VirtualConsole.cpp b/Kernel/VirtualConsole.cpp index cfac910428..ee1e984226 100644 --- a/Kernel/VirtualConsole.cpp +++ b/Kernel/VirtualConsole.cpp @@ -499,11 +499,12 @@ void VirtualConsole::on_sysconsole_receive(byte ch) m_current_attribute = old_attribute; } -void VirtualConsole::on_tty_write(const byte* data, size_t size) +ssize_t VirtualConsole::on_tty_write(const byte* data, size_t size) { InterruptDisabler disabler; for (size_t i = 0; i < size; ++i) on_char(data[i]); + return size; } String VirtualConsole::tty_name() const |