mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Add missing WUNTRACED
This commit is contained in:
@@ -1072,7 +1072,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);
|
||||
pid = waitpid(WAIT_ANY, &status, WNOHANG | WUNTRACED);
|
||||
} while (pid <= 0 && errno == EINTR);
|
||||
if (pid <= 0) {
|
||||
if (UNEXPECTED(psig == psig_first)) {
|
||||
|
||||
Reference in New Issue
Block a user