summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-02-19 13:39:16 -0200
committerHisham <hisham@gobolinux.org>2016-02-19 13:39:16 -0200
commitd4741d541016b1402ccc677ef11c692d7a1d0d92 (patch)
treef8c05e476f5ebfa4f45c83934971c98d0e37fb9a /htop.c
parent9668cd11ede61e66277a3fe521752a9c943dddd2 (diff)
Fix error test — looks like nobody bumped into this one!
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 9e82a122..78c292fb 100644
--- a/htop.c
+++ b/htop.c
@@ -176,7 +176,8 @@ int main(int argc, char** argv) {
#ifdef HAVE_PROC
if (access(PROCDIR, R_OK) != 0) {
- fprintf("Error: could not read procfs (compiled to look in %s).\n", PROCDIR);
+ fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR);
+ exit(1);
}
#endif

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