[php-src] PR #14617: Implement pcntl_waitid
| From: | vrza | Date: | Thu, 20 Jun 2024 14:55:44 +0000 |
| Subject: | [php-src] PR #14617: Implement pcntl_waitid | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26743@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14617
Author: vrza
Closes #14616
To round out the support for the "wait" family of functions this PR adds the
pcntl_waitid function.
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
Since status information struct is shared with sigwaitinfo, relevant code from
pcntl_sigwaitinfo has been reused.