sched/sched/sched_waitid.c: Allow WNOHANG
In the current implementation of waitid, WEXITED is mandatory and WNOHANG is optional.
This commit is contained in:
parent
51875ab039
commit
d3700649c0
@ -127,7 +127,12 @@ int nx_waitid(int idtype, id_t id, FAR siginfo_t *info, int options)
|
|||||||
* distinguish any other events.
|
* distinguish any other events.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (options != WEXITED)
|
if ((options & WEXITED) == 0)
|
||||||
|
{
|
||||||
|
return -ENOSYS;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((options & ~(WEXITED | WNOHANG)) != 0)
|
||||||
{
|
{
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user