From c459ca07706ee315da3eac91344c2f1d9a152685 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Fri, 20 Mar 2009 02:19:42 -0400 Subject: Make alarm handler customisable --- plugins/utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/utils.h') diff --git a/plugins/utils.h b/plugins/utils.h index 65e06ebd..d6e9c8f7 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -32,9 +32,11 @@ void print_revision (const char *, const char *); /* Handle timeouts */ #ifdef LOCAL_TIMEOUT_ALARM_HANDLER +extern unsigned int timeout_state; extern unsigned int timeout_interval; RETSIGTYPE timeout_alarm_handler (int); #else +unsigned int timeout_state = STATE_CRITICAL; unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; extern RETSIGTYPE timeout_alarm_handler (int); #endif -- cgit v1.2.3