mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
Kernel: Send SIGPIPE to the current thread on write to a broken pipe
This commit is contained in:
parent
70c9a89707
commit
deb154be61
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ ssize_t FIFO::read(FileDescription&, u8* buffer, ssize_t size)
|
|||
ssize_t FIFO::write(FileDescription&, const u8* buffer, ssize_t size)
|
||||
{
|
||||
if (!m_readers) {
|
||||
current->process().send_signal(SIGPIPE, ¤t->process());
|
||||
current->send_signal(SIGPIPE, ¤t->process());
|
||||
return -EPIPE;
|
||||
}
|
||||
#ifdef FIFO_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue