X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Fcf.c;h=fd53c54991c2972ee7c524f1dc5a4d83adee07f3;hp=432f78a4a4a83161c499f636c289164207562e39;hb=f2df7a1b1aeeb0cec2309aeb62fae051fd3c687c;hpb=48a91dd9f3bce22911839aa678ebe9a6bafab5fc 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);