X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fuserplex.c;h=3a2da874512f4760bcfbdc69bcc3f0291955ced9;hp=d6c978c0dec3d40cf347092bf9ba2fd166346e14;hb=f2df7a1b1aeeb0cec2309aeb62fae051fd3c687c;hpb=48a91dd9f3bce22911839aa678ebe9a6bafab5fc diff --git a/src/userplex.c b/src/userplex.c index d6c978c..3a2da87 100644 --- a/src/userplex.c +++ b/src/userplex.c @@ -145,7 +145,7 @@ static void serve2(struct user *usr, struct hthead *req, int fd) if(usr->fd < 0) usr->fd = forkchild(usr->name); if(sendreq(usr->fd, req, fd)) { - if(errno == EPIPE) { + if((errno == EPIPE) || (errno == ECONNRESET)) { /* Assume that the child has crashed and restart it. */ close(usr->fd); usr->fd = forkchild(usr->name);