From deb154be61867c1b23605037d3693f7980a3b9a0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 8 Feb 2020 19:12:06 +0100 Subject: [PATCH] Kernel: Send SIGPIPE to the current thread on write to a broken pipe --- Kernel/FileSystem/FIFO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/FileSystem/FIFO.cpp b/Kernel/FileSystem/FIFO.cpp index 2e5a3feb33..5fcda5209b 100644 --- a/Kernel/FileSystem/FIFO.cpp +++ b/Kernel/FileSystem/FIFO.cpp @@ -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