summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fcgiwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fcgiwrap.c b/fcgiwrap.c
index 835a060..f3f0ca4 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -114,7 +114,7 @@ static void fcgi_pass(struct fcgi_context *fc)
char buf[FCGI_BUF_SIZE];
ssize_t nread;
fd_set rset;
- int maxfd = max_va(fc->fd_stdout, fc->fd_stderr, MAX_VA_SENTINEL);
+ int maxfd = 1 + max_va(fc->fd_stdout, fc->fd_stderr, MAX_VA_SENTINEL);
int nready;
const char *err;