mirror of https://github.com/xzeldon/htop.git
Fix error test — looks like nobody bumped into this one!
This commit is contained in:
parent
9668cd11ed
commit
d4741d5410
3
htop.c
3
htop.c
|
@ -176,7 +176,8 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
#ifdef HAVE_PROC
|
#ifdef HAVE_PROC
|
||||||
if (access(PROCDIR, R_OK) != 0) {
|
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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue