summaryrefslogtreecommitdiffstats
path: root/plugins/popen.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-01-09 13:54:12 (GMT)
committerAndreas Baumann <mail@andreasbaumann.cc>2020-01-09 13:54:12 (GMT)
commitadb958849491ea7e0bba4a15896ebd41a0fbff2d (patch)
tree837f51cfb28406519481a959e5a484f188c0e2cb /plugins/popen.c
parent5e0c236d6a3499f08b16a2ddb5147393e9dbd27a (diff)
parentf53ea7afd8e124690871ebdb79a1432e4dd14488 (diff)
downloadmonitoring-plugins-adb9588.tar.gz
Merge branch 'master' into feature_check_curl
Diffstat (limited to 'plugins/popen.c')
-rw-r--r--plugins/popen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/popen.c b/plugins/popen.c
index 557fb44..9eb49b6 100644
--- a/plugins/popen.c
+++ b/plugins/popen.c
@@ -39,9 +39,9 @@
39*****************************************************************************/ 39*****************************************************************************/
40 40
41#include "common.h" 41#include "common.h"
42#include "utils.h"
42 43
43/* extern so plugin has pid to kill exec'd process on timeouts */ 44/* extern so plugin has pid to kill exec'd process on timeouts */
44extern int timeout_interval;
45extern pid_t *childpid; 45extern pid_t *childpid;
46extern int *child_stderr_array; 46extern int *child_stderr_array;
47extern FILE *child_process; 47extern FILE *child_process;
@@ -76,8 +76,6 @@ RETSIGTYPE popen_timeout_alarm_handler (int);
76#define SIG_ERR ((Sigfunc *)-1) 76#define SIG_ERR ((Sigfunc *)-1)
77#endif 77#endif
78 78
79#define min(a,b) ((a) < (b) ? (a) : (b))
80#define max(a,b) ((a) > (b) ? (a) : (b))
81 79
82char *pname = NULL; /* caller can set this from argv[0] */ 80char *pname = NULL; /* caller can set this from argv[0] */
83 81