diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-01-09 14:54:12 +0100 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-01-09 14:54:12 +0100 |
| commit | adb958849491ea7e0bba4a15896ebd41a0fbff2d (patch) | |
| tree | 837f51cfb28406519481a959e5a484f188c0e2cb /plugins/popen.c | |
| parent | 5e0c236d6a3499f08b16a2ddb5147393e9dbd27a (diff) | |
| parent | f53ea7afd8e124690871ebdb79a1432e4dd14488 (diff) | |
| download | monitoring-plugins-adb958849491ea7e0bba4a15896ebd41a0fbff2d.tar.gz | |
Merge branch 'master' into feature_check_curl
Diffstat (limited to 'plugins/popen.c')
| -rw-r--r-- | plugins/popen.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/popen.c b/plugins/popen.c index 557fb44e..9eb49b62 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 */ |
| 44 | extern int timeout_interval; | ||
| 45 | extern pid_t *childpid; | 45 | extern pid_t *childpid; |
| 46 | extern int *child_stderr_array; | 46 | extern int *child_stderr_array; |
| 47 | extern FILE *child_process; | 47 | extern 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 | ||
| 82 | char *pname = NULL; /* caller can set this from argv[0] */ | 80 | char *pname = NULL; /* caller can set this from argv[0] */ |
| 83 | 81 | ||
