Open vrza opened 2 months ago
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.
pcntl_wait
pcntl_waitpid
pcntl_waitid
Here's the POSIX reference to waitid:
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.
sigwaitinfo
pcntl_sigwaitinfo
Code is merged to master, documentation PR needs more reviewers.
Description
To round out the support for the "wait" family of functions, in addition to having
pcntl_wait
andpcntl_waitpid
, we should addpcntl_waitid
.Here's the POSIX reference to
waitid
:https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitid.html
The status information struct is shared with
sigwaitinfo
, so code reuse betweenpcntl_sigwaitinfo
andpcntl_waitid
might be possible.