Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Fixed WSGI wrapper to handle empty responses.
[ashd.git]
/
src
/
callcgi.c
diff --git
a/src/callcgi.c
b/src/callcgi.c
index
72f814a
..
c29edd4
100644
(file)
--- a/
src/callcgi.c
+++ b/
src/callcgi.c
@@
-53,7
+53,7
@@
static int passdata(FILE *in, FILE *out)
}
}
if(ret > 0) {
- if(pfds[0].revents &
POLLIN
) {
+ if(pfds[0].revents &
(POLLIN | POLLERR | POLLHUP)
) {
ret = fread(buf, 1, 65536, in);
if(ferror(in)) {
flog(LOG_ERR, "callcgi: could not read input: %s", strerror(errno));