X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fcf.c;h=82e5fba56d14e931563743f7534ee25bcbaf196f;hb=b390f906b00859da9cf7c0ec7e0ca034010e5fce;hp=5df5c59a5e91d10fcc2feeea2172132f3ef42918;hpb=d1b065b5e557cafab691a5da47b503e45f86a314;p=ashd.git diff --git a/lib/cf.c b/lib/cf.c index 5df5c59..82e5fba 100644 --- a/lib/cf.c +++ b/lib/cf.c @@ -289,7 +289,7 @@ int childhandle(struct child *ch, struct hthead *req, int fd) close(ch->fd); ch->fd = stdmkchild(ch->argv); if(!sendreq(ch->fd, req, fd)) - return(-1); + return(0); } flog(LOG_ERR, "could not pass on request to child %s: %s", ch->name, strerror(errno)); close(ch->fd);