diff options
Diffstat (limited to 'plugins/check_pgsql.c')
-rw-r--r-- | plugins/check_pgsql.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 5c3b810..f9d6611 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
@@ -133,12 +133,11 @@ main (int argc, char **argv) | |||
133 | textdomain (PACKAGE); | 133 | textdomain (PACKAGE); |
134 | 134 | ||
135 | if (process_arguments (argc, argv) != TRUE) | 135 | if (process_arguments (argc, argv) != TRUE) |
136 | usage (_("check_pgsql: could not parse arguments\n")); | 136 | usage4 (_("Could not parse arguments")); |
137 | 137 | ||
138 | /* Set signal handling and alarm */ | 138 | /* Set signal handling and alarm */ |
139 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { | 139 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { |
140 | printf (_("Cannot catch SIGALRM")); | 140 | usage4 (_("Cannot catch SIGALRM")); |
141 | return STATE_UNKNOWN; | ||
142 | } | 141 | } |
143 | alarm (timeout_interval); | 142 | alarm (timeout_interval); |
144 | 143 | ||