Fixed return bug in childhandle.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 24 Aug 2010 19:35:10 +0000 (21:35 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 24 Aug 2010 19:35:10 +0000 (21:35 +0200)
lib/cf.c

index 5df5c59..82e5fba 100644 (file)
--- 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);