From b390f906b00859da9cf7c0ec7e0ca034010e5fce Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 24 Aug 2010 21:35:10 +0200 Subject: [PATCH] Fixed return bug in childhandle. --- lib/cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0