summaryrefslogtreecommitdiff
path: root/sapi/fpm/fpm/fpm_stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/fpm/fpm/fpm_stdio.c')
-rw-r--r--sapi/fpm/fpm/fpm_stdio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sapi/fpm/fpm/fpm_stdio.c b/sapi/fpm/fpm/fpm_stdio.c
index 1742467b36..42ea159430 100644
--- a/sapi/fpm/fpm/fpm_stdio.c
+++ b/sapi/fpm/fpm/fpm_stdio.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include "php_syslog.h"
+#include "php_network.h"
#include "fpm.h"
#include "fpm_children.h"
@@ -166,7 +167,7 @@ static void fpm_stdio_child_said(struct fpm_event_s *ev, short which, void *arg)
stdio_read:
in_buf = read(fd, buf, max_buf_size - 1);
if (in_buf <= 0) { /* no data */
- if (in_buf == 0 || (errno != EAGAIN && errno != EWOULDBLOCK)) {
+ if (in_buf == 0 || !PHP_IS_TRANSIENT_ERROR(errno)) {
/* pipe is closed or error */
read_fail = (in_buf < 0) ? in_buf : 1;
}