mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 14:12:52 +00:00
Kernel: Writing to a slave PTY should yield EIO if the master is closed.
This commit is contained in:
parent
2a0700af9a
commit
0669ef8977
Notes:
sideshowbarker
2024-07-19 15:51:24 +09:00
Author: https://github.com/awesomekling
Commit: 0669ef8977
7 changed files with 14 additions and 8 deletions
|
@ -33,9 +33,9 @@ void SlavePTY::on_master_write(const byte* buffer, size_t size)
|
|||
emit(buffer[i]);
|
||||
}
|
||||
|
||||
void SlavePTY::on_tty_write(const byte* data, size_t size)
|
||||
ssize_t SlavePTY::on_tty_write(const byte* data, size_t size)
|
||||
{
|
||||
m_master->on_slave_write(data, size);
|
||||
return m_master->on_slave_write(data, size);
|
||||
}
|
||||
|
||||
bool SlavePTY::can_write(Process&) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue