From: Fredrik Tolf Date: Tue, 24 Aug 2010 19:35:10 +0000 (+0200) Subject: Fixed return bug in childhandle. X-Git-Tag: 0.1~86 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=b390f906b00859da9cf7c0ec7e0ca034010e5fce Fixed return bug in childhandle. --- 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);