Skip to content

Commit 0d4f59f

Browse files
committed
Add missing WUNTRACED
I forgot to add this in phpGH-11509.
1 parent f39b513 commit 0d4f59f

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
@@ -1362,7 +1362,7 @@ static void pcntl_signal_handler(int signo)
13621362
errno = 0;
13631363
/* Although Linux specifies that WNOHANG will never result in EINTR, POSIX doesn't say so:
13641364
* https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html */
1365-
pid = waitpid(WAIT_ANY, &status, WNOHANG);
1365+
pid = waitpid(WAIT_ANY, &status, WNOHANG | WUNTRACED);
13661366
} while (pid <= 0 && errno == EINTR);
13671367
if (pid <= 0) {
13681368
if (UNEXPECTED(psig == psig_first)) {

0 commit comments

Comments
 (0)