Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
callfcgi: Fixed free() typo.
[ashd.git]
/
src
/
patplex.c
diff --git
a/src/patplex.c
b/src/patplex.c
index
3f22d73
..
8394406
100644
(file)
--- a/
src/patplex.c
+++ b/
src/patplex.c
@@
-438,7
+438,7
@@
static void serve(struct hthead *req, int fd)
return;
}
return;
}
- if(childhandle(ch, req, fd))
+ if(childhandle(ch, req, fd
, NULL, NULL
))
simpleerror(fd, 500, "Server Error", "The request handler crashed.");
}
simpleerror(fd, 500, "Server Error", "The request handler crashed.");
}
@@
-513,12
+513,15
@@
int main(int argc, char **argv)
}
signal(SIGCHLD, SIG_IGN);
signal(SIGHUP, sighandler);
}
signal(SIGCHLD, SIG_IGN);
signal(SIGHUP, sighandler);
+ signal(SIGPIPE, sighandler);
while(1) {
if(reload) {
reloadconf(argv[optind]);
reload = 0;
}
if((fd = recvreq(0, &req)) < 0) {
while(1) {
if(reload) {
reloadconf(argv[optind]);
reload = 0;
}
if((fd = recvreq(0, &req)) < 0) {
+ if(errno == EINTR)
+ continue;
if(errno != 0)
flog(LOG_ERR, "recvreq: %s", strerror(errno));
break;
if(errno != 0)
flog(LOG_ERR, "recvreq: %s", strerror(errno));
break;