diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-19 12:08:56 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-19 12:08:56 +0000 |
commit | 1919128b52ab85cdce80c42468da3dd2c2e24cc8 (patch) | |
tree | 5017385397d80aa13d325e26392cbc6715f386e8 /usr.sbin/relayd/hce.c | |
parent | 606ce456a609f715d65446676b7212d3d4a28715 (diff) |
Add the ability to schedule an immediate check through hoststatectl.
Especially useful when interval is rather long.
I was supposed to commit this before 4.2.
Diffstat (limited to 'usr.sbin/relayd/hce.c')
-rw-r--r-- | usr.sbin/relayd/hce.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/relayd/hce.c b/usr.sbin/relayd/hce.c index 2c01db611bf..62a34e8b6e4 100644 --- a/usr.sbin/relayd/hce.c +++ b/usr.sbin/relayd/hce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hce.c,v 1.31 2007/10/12 12:50:59 blambert Exp $ */ +/* $OpenBSD: hce.c,v 1.32 2007/10/19 12:08:55 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -395,6 +395,10 @@ hce_dispatch_imsg(int fd, short event, void *ptr) TAILQ_FOREACH(host, &table->hosts, entry) host->up = HOST_UNKNOWN; break; + case IMSG_CTL_POLL: + evtimer_del(&env->ev); + hce_launch_checks(-1, EV_TIMEOUT, env); + break; default: log_debug("hce_dispatch_msg: unexpected imsg %d", imsg.hdr.type); |