summaryrefslogtreecommitdiffstats
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index d1e1b7c..4bc87c0 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -116,12 +116,11 @@ main (int argc, char **argv)
116 metric = METRIC_PROCS; 116 metric = METRIC_PROCS;
117 117
118 if (process_arguments (argc, argv) != TRUE) 118 if (process_arguments (argc, argv) != TRUE)
119 usage (_("check_procs: could not parse arguments\n")); 119 usage4 (_("Could not parse arguments"));
120 120
121 /* Set signal handling and alarm timeout */ 121 /* Set signal handling and alarm timeout */
122 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) { 122 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) {
123 printf (_("Cannot catch SIGALRM")); 123 usage4 (_("Cannot catch SIGALRM"));
124 return STATE_UNKNOWN;
125 } 124 }
126 alarm (timeout_interval); 125 alarm (timeout_interval);
127 126