aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorGravatar Sebastian Schmidt <sschmidt@interhyp.de> 2013-08-18 12:42:11 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-18 12:59:57 +0200
commit0f686d436e5e18d6f40fecc01128d3f383439b35 (patch)
tree216818d27e1a65ad92c374dd0df7d9518161a913 /plugins/check_procs.c
parentd5677d9b42562b429218dd9436efd5f0e79d7929 (diff)
downloadmonitoring-plugins-0f686d436e5e18d6f40fecc01128d3f383439b35.tar.gz
check_procs: Get rid of HAVE_PROC_PID_EXE
Don't check for /proc/pid/exe at compile time, it could be gone in a build chroot or the like. Checking at runtime (once) is sufficient.
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index d6441f0a..3b4c822a 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -110,7 +110,7 @@ FILE *ps_input = NULL;
static int
stat_exe (const pid_t pid, struct_stat_t *buf) {
-#if defined(HAVE_PROC_PID_EXE) && defined(HAVE_SYS_STAT_H)
+#ifdef HAVE_SYS_STAT_H
char *path;
int ret;
xasprintf(&path, "/proc/%d/exe", pid);