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

Add pcntl_waitid, wrapping POSIX waitid #14616

Open
vrza opened this issue Jun 20, 2024 · 0 comments
Open

Add pcntl_waitid, wrapping POSIX waitid #14616

vrza opened this issue Jun 20, 2024 · 0 comments

Comments

@vrza
Copy link
Contributor

vrza commented Jun 20, 2024

Description

To round out the support for the "wait" family of functions, in addition to having pcntl_wait and pcntl_waitpid, we should add pcntl_waitid.

Here's the POSIX reference to waitid:

https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitid.html

The waitid() function shall obtain status information pertaining to termination, stop, and/or continue events in one of the caller's child processes

The status information struct is shared with sigwaitinfo, so code reuse between pcntl_sigwaitinfo and pcntl_waitid might be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant