mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
Kernel: Don't return -EFOO when return type is KResultOr<...>
This commit is contained in:
@@ -155,8 +155,9 @@ KResultOr<size_t> FIFO::write(FileDescription&, size_t, const UserOrKernelBuffer
|
||||
{
|
||||
if (!m_readers) {
|
||||
Thread::current()->send_signal(SIGPIPE, Process::current());
|
||||
return -EPIPE;
|
||||
return EPIPE;
|
||||
}
|
||||
|
||||
return m_buffer.write(buffer, size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user