summaryrefslogtreecommitdiffstats
path: root/plugins/negate.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/negate.c')
-rw-r--r--plugins/negate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/negate.c b/plugins/negate.c
index faf81b34..3ef5ee76 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -138,13 +138,13 @@ main (int argc, char **argv)
138 138
139 /* Set signal handling and alarm */ 139 /* Set signal handling and alarm */
140 if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) 140 if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR)
141 terminate (STATE_UNKNOWN, _("Cannot catch SIGALRM")); 141 die (STATE_UNKNOWN, _("Cannot catch SIGALRM"));
142 142
143 (void) alarm ((unsigned) timeout_interval); 143 (void) alarm ((unsigned) timeout_interval);
144 144
145 child_process = spopen (command_line); 145 child_process = spopen (command_line);
146 if (child_process == NULL) 146 if (child_process == NULL)
147 terminate (STATE_UNKNOWN, _("Could not open pipe: %s\n"), command_line); 147 die (STATE_UNKNOWN, _("Could not open pipe: %s\n"), command_line);
148 148
149 child_stderr = fdopen (child_stderr_array[fileno (child_process)], "r"); 149 child_stderr = fdopen (child_stderr_array[fileno (child_process)], "r");
150 if (child_stderr == NULL) { 150 if (child_stderr == NULL) {
@@ -163,7 +163,7 @@ main (int argc, char **argv)
163 } 163 }
164 164
165 if (!found) 165 if (!found)
166 terminate (STATE_UNKNOWN,\ 166 die (STATE_UNKNOWN,\
167 _("%s problem - No data recieved from host\nCMD: %s\n"),\ 167 _("%s problem - No data recieved from host\nCMD: %s\n"),\
168 argv[0], command_line); 168 argv[0], command_line);
169 169