summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c6
1 files 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;
}
}