X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Fcf.c;h=86658f87ccb424f1bfec1776045d58788c143ca0;hp=96181ee49b24404ac1ec5a7433bcf96c06a9e9f3;hb=fc35a3ef51b6f8a2735001b667dac63ae9154ed9;hpb=3d74fc074c6cdb453061be14fd79723b8244bbf0 diff --git a/lib/cf.c b/lib/cf.c index 96181ee..86658f8 100644 --- a/lib/cf.c +++ b/lib/cf.c @@ -319,8 +319,10 @@ static int stdhandle(struct child *ch, struct hthead *req, int fd, void (*chinit return(0); } flog(LOG_ERR, "could not pass on request to child %s: %s", ch->name, strerror(errno)); - close(i->fd); - i->fd = -1; + if(errno != EAGAIN) { + close(i->fd); + i->fd = -1; + } return(-1); } } else if(i->type == CH_FORK) {