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:
parent
34775633b2
commit
80ce9d546a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue