mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
Kernel: Don't return -EFOO when return type is KResultOr<...>
This commit is contained in:
parent
2b269b27e7
commit
a166a65eff
5 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue