diff options
Diffstat (limited to 'Kernel/Syscalls/waitid.cpp')
-rw-r--r-- | Kernel/Syscalls/waitid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Syscalls/waitid.cpp b/Kernel/Syscalls/waitid.cpp index 6a7953ca4e..ea6fb3248a 100644 --- a/Kernel/Syscalls/waitid.cpp +++ b/Kernel/Syscalls/waitid.cpp @@ -38,12 +38,12 @@ KResultOr<siginfo_t> Process::do_waitid(idtype_t idtype, int id, int options) case P_PGID: break; default: - return KResult(-EINVAL); + return EINVAL; } KResultOr<siginfo_t> result = KResult(KSuccess); if (Thread::current()->block<Thread::WaitBlocker>({}, options, idtype, id, result).was_interrupted()) - return KResult(-EINTR); + return EINTR; ASSERT(!result.is_error() || (options & WNOHANG) || result.error() != KSuccess); return result; } |