summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 6d8ef06d..ecaf03ed 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -79,12 +79,11 @@ main (int argc, char **argv)
79 addresses[0] = NULL; 79 addresses[0] = NULL;
80 80
81 if (process_arguments (argc, argv) != TRUE) 81 if (process_arguments (argc, argv) != TRUE)
82 usage (_("check_ping: could not parse arguments\n")); 82 usage4 (_("Could not parse arguments"));
83 83
84 /* Set signal handling and alarm */ 84 /* Set signal handling and alarm */
85 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) { 85 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) {
86 printf (_("Cannot catch SIGALRM")); 86 usage4 (_("Cannot catch SIGALRM"));
87 return STATE_UNKNOWN;
88 } 87 }
89 88
90 /* handle timeouts gracefully */ 89 /* handle timeouts gracefully */