Skip to content

Commit a8bf8e3

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Add missing WUNTRACED
2 parents 022b6aa + 931d8d0 commit a8bf8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcntl/pcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ static void pcntl_signal_handler(int signo)
10721072
errno = 0;
10731073
/* Although Linux specifies that WNOHANG will never result in EINTR, POSIX doesn't say so:
10741074
* https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html */
1075-
pid = waitpid(WAIT_ANY, &status, WNOHANG);
1075+
pid = waitpid(WAIT_ANY, &status, WNOHANG | WUNTRACED);
10761076
} while (pid <= 0 && errno == EINTR);
10771077
if (pid <= 0) {
10781078
if (UNEXPECTED(psig == psig_first)) {

0 commit comments

Comments
 (0)