Kernel: Don't error out on SYS_WAIT with W{CONTINUED,UNTRACED}

As I don't support stopping and continuing processes these flags are
effecively no-ops
This commit is contained in:
Bananymous 2025-01-17 16:14:52 +02:00
parent 34775633b2
commit 80ce9d546a
1 changed files with 1 additions and 3 deletions

View File

@ -692,9 +692,7 @@ namespace Kernel
if (options & ~(WCONTINUED | WNOHANG | WUNTRACED)) if (options & ~(WCONTINUED | WNOHANG | WUNTRACED))
return BAN::Error::from_errno(EINVAL); return BAN::Error::from_errno(EINVAL);
// FIXME: support options stopped processes // FIXME: Add WCONTINUED and WUNTRACED when stopped/continued processes are added
if (options & ~(WCONTINUED | WUNTRACED))
return BAN::Error::from_errno(ENOTSUP);
const auto pid_matches = const auto pid_matches =
[&](const ChildExitStatus& child) [&](const ChildExitStatus& child)