diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2008-06-10 18:43:58 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2008-06-10 18:43:58 +0200 |
| commit | ceaa9e419419615294cced12954fddcb66704ca6 (patch) | |
| tree | 16feaaa42fc45e5f6a1477967de8630a67a2261e | |
| parent | 5a217e4f2276a8393c392a558ac6a8863752a750 (diff) | |
Keep passing data from CGI to FastCGI even after a descriptor closes early
| -rw-r--r-- | fcgiwrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -269,7 +269,7 @@ static void fcgi_pass(struct fcgi_context *fc) return; /* now pass CGI reply back */ - while (fc->fd_stdout >= 0 && fc->fd_stderr >= 0) { + while (fc->fd_stdout >= 0 || fc->fd_stderr >= 0) { FD_ZERO(&rset); if (fc->fd_stdout >= 0) FD_SET(fc->fd_stdout, &rset); if (fc->fd_stderr >= 0) FD_SET(fc->fd_stderr, &rset); |
