summaryrefslogtreecommitdiffstats
path: root/plugins/negate.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-07 11:51:12 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-07 11:51:12 (GMT)
commit9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch)
treecb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/negate.c
parent7f1bb2a782a008b55b0ef657ec01d7fbdb637fd4 (diff)
downloadmonitoring-plugins-9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709.tar.gz
replace "terminate" with "die" for shorter name and better readability
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@656 f882894a-f735-0410-b71e-b25c423dba1c
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 faf81b3..3ef5ee7 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