We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 022b6aa + 931d8d0 commit a8bf8e3Copy full SHA for a8bf8e3
ext/pcntl/pcntl.c
@@ -1072,7 +1072,7 @@ static void pcntl_signal_handler(int signo)
1072
errno = 0;
1073
/* Although Linux specifies that WNOHANG will never result in EINTR, POSIX doesn't say so:
1074
* https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html */
1075
- pid = waitpid(WAIT_ANY, &status, WNOHANG);
+ pid = waitpid(WAIT_ANY, &status, WNOHANG | WUNTRACED);
1076
} while (pid <= 0 && errno == EINTR);
1077
if (pid <= 0) {
1078
if (UNEXPECTED(psig == psig_first)) {
0 commit comments