Skip to content
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

Implement WNOHANG for waitpid and waitid #1305

Merged
merged 2 commits into from
Jun 26, 2020
Merged

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Jun 26, 2020

Summary

Implement WNOHANG for

  • (CONFIG_SCHED_HAVE_PARENT=y version of) waitpid
  • waitid

Impact

Testing

waitpid is tested with my local app.
waitid is build-tested only.

yamt added 2 commits June 26, 2020 12:44
If there's no child status available immediately,
return 0 without blocking as specified by the standards.

The implementation for non CONFIG_SCHED_HAVE_PARENT case
seems ok in this regard.

I checked the following version of the standard.
I believe it has always been this way though.

    The Open Group Base Specifications Issue 7, 2018 edition
    IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)
If there's no child status available immediately,
return 0 without blocking as specified by the standards.

I checked the following version of the standard.
I believe it has always been this way though.

    The Open Group Base Specifications Issue 7, 2018 edition
    IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)
@yamt yamt linked an issue Jun 26, 2020 that may be closed by this pull request
@xiaoxiang781216 xiaoxiang781216 merged commit 91611de into apache:master Jun 26, 2020
@btashton btashton added this to To-Add in Release Notes - 10.0.0 Oct 14, 2020
@btashton btashton moved this from To-Add to Added in Release Notes - 10.0.0 Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

waitpid ignores WNOHANG when CONFIG_SCHED_HAVE_PARENT=y
2 participants