aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-15 09:10:31 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-15 09:10:31 +0100
commit9ce014591ffd9a8170866e0081bf5022b65aba9b (patch)
tree8da10aab3e49a39b66167a56567936795f15fb9d
parent709abe18e5c20b24654b177f6543cfe95ed1ac4d (diff)
downloadpaccache-9ce014591ffd9a8170866e0081bf5022b65aba9b.tar.gz
paccache-9ce014591ffd9a8170866e0081bf5022b65aba9b.tar.zst
reset badcount on SIGHUP
-rw-r--r--pacredir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pacredir.c b/pacredir.c
index 7574c44..8079421 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -443,7 +443,9 @@ void sighup_callback(int signal) {
while (tmphosts->host != NULL) {
tmphosts->pacserve.bad = 0;
+ tmphosts->pacserve.badcount = 0;
tmphosts->pacdbserve.bad = 0;
+ tmphosts->pacdbserve.badcount = 0;
tmphosts = tmphosts->next;
}
}