From 4844cf8625f635baaa0d3c31182e34f89ec70bc5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 30 Oct 2013 11:32:36 +0100 Subject: reset bad status for hosts on SIGHUP --- pacredir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pacredir.c b/pacredir.c index dd1ea55..7867cff 100644 --- a/pacredir.c +++ b/pacredir.c @@ -368,11 +368,11 @@ void sigterm_callback(int signal) { void sighup_callback(int signal) { struct hosts * tmphosts = hosts; - write_log(stdout, "Received SIGHUP, marking all hosts offline.\n"); + write_log(stdout, "Received SIGHUP, resetting bad status for hosts.\n"); while (tmphosts->host != NULL) { - tmphosts->pacserve.online = 0; - tmphosts->pacdbserve.online = 0; + tmphosts->pacserve.bad = 0; + tmphosts->pacdbserve.bad = 0; tmphosts = tmphosts->next; } } -- cgit v1.2.3-54-g00ecf