From 6f761f0ad9ab8ab78de873612668bea4c7c86045 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 5 Jan 2014 12:15:26 +0100 Subject: [PATCH] lib: Properly use error from the restarted child, in the event of restarting. --- lib/cf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cf.c b/lib/cf.c index 47db8c2..1f7be79 100644 --- a/lib/cf.c +++ b/lib/cf.c @@ -386,6 +386,7 @@ static int stdhandle(struct child *ch, struct hthead *req, int fd, void (*chinit freeca(args); if(!sendreq2(sd->fd, req, fd, MSG_NOSIGNAL | MSG_DONTWAIT)) return(0); + serr = errno; } flog(LOG_ERR, "could not pass on request to child %s: %s", ch->name, strerror(serr)); if(serr != EAGAIN) { -- 2.11.0