-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sched: remove DEBUGASSERT from nx_waitpid #6137
Conversation
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
e516083
to
1e1594e
Compare
@pkarashchenko Could you please link a reference to the POSIX chapter that states that |
I've updated PR description |
Thanks, I had skimmed that page, but I failed to find the information. I tried looking at other implementations. In the Linux Kernel, if |
Yeah, but POSIX does not define an error code if |
I agree with your point.
I am okay with the proposed changes. |
@gustavonihei I think if POSIX want to define |
Summary
stat_loc
ofwait
andwaitpid
can beNULL
according to POSIX (https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html):In this case, if the value of the argument stat_loc is not a null pointer, information shall be stored in the location pointed to by stat_loc.
Remove
DEBUGASSERT(stat_loc);
fromnx_waitpid
Impact
Minimal if this was not reported by anyone till now
Testing
Pass CI
Tested with SAME70-QMTECH board with
CONFIG_SCHED_HAVE_PARENT=n