summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-27 20:04:53 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-27 20:04:53 -0200
commita89758094fc355771da613a0f9b1cb16017dd4e8 (patch)
tree0b58c155a12f66ea1567a13a7abcbbdab02948c3 /htop.c
parent5578a316f047551d21f04a5df47fd705bf486ee3 (diff)
check /proc only if using /proc
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index e70c270d..f5ccbccb 100644
--- a/htop.c
+++ b/htop.c
@@ -656,11 +656,12 @@ int main(int argc, char** argv) {
}
}
-
+#ifdef HAVE_PROC
if (access(PROCDIR, R_OK) != 0) {
fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR);
exit(1);
}
+#endif
#ifdef HAVE_LIBNCURSESW
char *locale = setlocale(LC_ALL, NULL);

© 2014-2024 Faster IT GmbH | imprint | privacy policy