summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-11-21 09:54:40 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-11-21 09:54:40 +0000
commit8ad33b24a14987019b4ae822304ec574f663b506 (patch)
treeb15a11b0302808db1c42974d42841a864f955788
parent5eecc2f7dc47956422ac2519245d0d609acb889e (diff)
make sure all hosts are checked when hoststatectl poll is issued, now
that check interval can differ from table to table. ok reyk@
-rw-r--r--usr.sbin/hoststated/hce.c4
-rw-r--r--usr.sbin/relayd/hce.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/hoststated/hce.c b/usr.sbin/hoststated/hce.c
index 28665609b14..c24278196c5 100644
--- a/usr.sbin/hoststated/hce.c
+++ b/usr.sbin/hoststated/hce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hce.c,v 1.34 2007/11/20 15:44:21 pyr Exp $ */
+/* $OpenBSD: hce.c,v 1.35 2007/11/21 09:54:39 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -403,6 +403,8 @@ hce_dispatch_imsg(int fd, short event, void *ptr)
break;
case IMSG_CTL_POLL:
evtimer_del(&env->ev);
+ TAILQ_FOREACH(table, env->tables, entry)
+ table->skipped = 0;
hce_launch_checks(-1, EV_TIMEOUT, env);
break;
default:
diff --git a/usr.sbin/relayd/hce.c b/usr.sbin/relayd/hce.c
index 28665609b14..c24278196c5 100644
--- a/usr.sbin/relayd/hce.c
+++ b/usr.sbin/relayd/hce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hce.c,v 1.34 2007/11/20 15:44:21 pyr Exp $ */
+/* $OpenBSD: hce.c,v 1.35 2007/11/21 09:54:39 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -403,6 +403,8 @@ hce_dispatch_imsg(int fd, short event, void *ptr)
break;
case IMSG_CTL_POLL:
evtimer_del(&env->ev);
+ TAILQ_FOREACH(table, env->tables, entry)
+ table->skipped = 0;
hce_launch_checks(-1, EV_TIMEOUT, env);
break;
default: