1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

Kernel: Send SIGPIPE to the current thread on write to a broken pipe

This commit is contained in:
Andreas Kling 2020-02-08 19:12:06 +01:00
parent 70c9a89707
commit deb154be61
Notes: sideshowbarker 2024-07-19 09:31:31 +09:00

View file

@ -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, &current->process());
current->send_signal(SIGPIPE, &current->process());
return -EPIPE;
}
#ifdef FIFO_DEBUG