Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a simple program to manage multiple [FS]CGI instances.
[ashd.git]
/
lib
/
cf.c
diff --git
a/lib/cf.c
b/lib/cf.c
index
432f78a
..
fd53c54
100644
(file)
--- a/
lib/cf.c
+++ b/
lib/cf.c
@@
-332,7
+332,7
@@
int childhandle(struct child *ch, struct hthead *req, int fd, void (*chinit)(voi
if(ch->fd < 0)
ch->fd = stdmkchild(ch->argv, chinit, idata);
if(sendreq(ch->fd, req, fd)) {
if(ch->fd < 0)
ch->fd = stdmkchild(ch->argv, chinit, idata);
if(sendreq(ch->fd, req, fd)) {
- if(
errno == EPIPE
) {
+ if(
(errno == EPIPE) || (errno == ECONNRESET)
) {
/* Assume that the child has crashed and restart it. */
close(ch->fd);
ch->fd = stdmkchild(ch->argv, chinit, idata);
/* Assume that the child has crashed and restart it. */
close(ch->fd);
ch->fd = stdmkchild(ch->argv, chinit, idata);