From e789416b1737788a042df114d1a908a4a00847b8 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 26 Jun 2014 15:15:36 +0300 Subject: [PATCH] Fix unused variable warnings --- src/ckpool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ckpool.c b/src/ckpool.c index 95e4a865..11da8ea1 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -230,7 +230,6 @@ int read_socket_line(connsock_t *cs, int timeout) char *eom = NULL; size_t buflen; int ret = -1; - fd_set rd; if (unlikely(cs->fd < 0)) goto out; @@ -692,6 +691,8 @@ static void sighandler(int sig) { ckpool_t *ckp = global_ckp; + LOGWARNING("Parent process %s received signal %d, shutting down", + ckp->name, sig); pthread_cancel(ckp->pth_watchdog); join_pthread(ckp->pth_watchdog);