X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fpatplex.c;h=04b7a1058b3cb0dc00cac4889a59778a06a5cf23;hb=6a7a868e28e79f5502cc4b37578c263f640439c8;hp=3f22d738b582e0263bdfb3f08cf24d0579fac5c2;hpb=3a42b6b1d0b8f9e8ce5c77e838e2573bbfabe593;p=ashd.git diff --git a/src/patplex.c b/src/patplex.c index 3f22d73..04b7a10 100644 --- a/src/patplex.c +++ b/src/patplex.c @@ -438,7 +438,7 @@ static void serve(struct hthead *req, int fd) return; } - if(childhandle(ch, req, fd)) + if(childhandle(ch, req, fd, NULL, NULL)) simpleerror(fd, 500, "Server Error", "The request handler crashed."); } @@ -519,6 +519,8 @@ int main(int argc, char **argv) reload = 0; } if((fd = recvreq(0, &req)) < 0) { + if(errno == EINTR) + continue; if(errno != 0) flog(LOG_ERR, "recvreq: %s", strerror(errno)); break;