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 42bcc61 commit 7ec329dCopy full SHA for 7ec329d
ext/pcntl/pcntl.c
@@ -916,10 +916,11 @@ PHP_FUNCTION(pcntl_sigtimedwait)
916
timeout.tv_sec = (time_t) tv_sec;
917
timeout.tv_nsec = tv_nsec;
918
int signal_no = sigtimedwait(&set, &siginfo, &timeout);
919
- // TODO Drop check for EAGAIN as it will return -1?
920
- if (signal_no == -1 && errno != EAGAIN) {
921
- PCNTL_G(last_error) = errno;
922
- php_error_docref(NULL, E_WARNING, "%s", strerror(errno));
+ if (signal_no == -1) {
+ if (errno != EAGAIN) {
+ PCNTL_G(last_error) = errno;
+ php_error_docref(NULL, E_WARNING, "%s", strerror(errno));
923
+ }
924
RETURN_FALSE;
925
}
926
0 commit comments