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.
1 parent f39b513 commit 931d8d0Copy full SHA for 931d8d0
ext/pcntl/pcntl.c
@@ -1362,7 +1362,7 @@ static void pcntl_signal_handler(int signo)
1362
errno = 0;
1363
/* Although Linux specifies that WNOHANG will never result in EINTR, POSIX doesn't say so:
1364
* https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html */
1365
- pid = waitpid(WAIT_ANY, &status, WNOHANG);
+ pid = waitpid(WAIT_ANY, &status, WNOHANG | WUNTRACED);
1366
} while (pid <= 0 && errno == EINTR);
1367
if (pid <= 0) {
1368
if (UNEXPECTED(psig == psig_first)) {
0 commit comments