X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcallcgi.c;h=c29edd417f03931660e319079086d8c5f54e595e;hb=048ac11565aca7457873f5ec299101ae0e794e16;hp=72f814a828729f06bf6af15ace8923b719fb3c61;hpb=df96b2220cf1f738fdfc26236df1e91d5c89e078;p=ashd.git diff --git a/src/callcgi.c b/src/callcgi.c index 72f814a..c29edd4 100644 --- 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));