X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fcf.c;h=fd53c54991c2972ee7c524f1dc5a4d83adee07f3;hb=f2df7a1b1aeeb0cec2309aeb62fae051fd3c687c;hp=432f78a4a4a83161c499f636c289164207562e39;hpb=6a7a868e28e79f5502cc4b37578c263f640439c8;p=ashd.git diff --git a/lib/cf.c b/lib/cf.c index 432f78a..fd53c54 100644 --- 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(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);