mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2'
* PHP-8.2: Use waitpid(-1) over WAIT_ANY
This commit is contained in:
commit
149fb8fc34
1 changed files with 1 additions and 1 deletions
|
@ -1070,7 +1070,7 @@ static void pcntl_signal_handler(int signo)
|
|||
errno = 0;
|
||||
/* Although Linux specifies that WNOHANG will never result in EINTR, POSIX doesn't say so:
|
||||
* https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html */
|
||||
pid = waitpid(WAIT_ANY, &status, WNOHANG | WUNTRACED);
|
||||
pid = waitpid(-1, &status, WNOHANG | WUNTRACED);
|
||||
} while (pid <= 0 && errno == EINTR);
|
||||
if (pid <= 0) {
|
||||
if (UNEXPECTED(!psig)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue