Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249cd06
)
callcgi: Remember to check for POLLERR and POLLHUP on the input socket.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 30 Sep 2010 05:47:23 +0000
(07:47 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 30 Sep 2010 05:47:23 +0000
(07:47 +0200)
src/callcgi.c
patch
|
blob
|
blame
|
history
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));