blob: 57fe747ecfc7446397e51a6ab1933b44e390426e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 1367e90..bfdee49 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -500,9 +500,7 @@ run_ping (const char *cmd, const char *addr)
(void) fclose (child_stderr);
- /* close the pipe - WARNING if status is set */
- if (spclose (child_process))
- result = max_state (result, STATE_WARNING);
+ spclose (child_process);
if (warn_text == NULL)
warn_text = strdup("");
|