[php-src] PR #15921: Extend pcntl_waitid with rusage parameter
| From: | vrza | Date: | Mon, 16 Sep 2024 16:48:28 +0000 |
| Subject: | [php-src] PR #15921: Extend pcntl_waitid with rusage parameter | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28621@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15921
Author: vrza
Enhancement to #14616.
This functionality is not part of the POSIX _waitid_ interface.
- On FreeBSD, the
wait6 system call provides it
- On Linux, the raw waitid system call provides it, but it is not part of the interface
exposed by glibc.
Conceptually, this is similar to how pcntl_wait and pcntl_waitpid extend
the POSIX interface to fetch rusage info, where supported by the host OS.
Requesting code review @devnexen @bukka @petk @kocsismate @Girgias
[Documentation PR for pcntl_waitid](https://github.com/php/doc-en/pull/3518) is not merged yet, I
can add to that open PR, or document this in a separate one, depending on what PR we merge first.