diff --git a/htop.c b/htop.c index 9e82a12202c6cc566527e971fd4c362ecb8c3dac..78c292fbf419393873608307fc328e18fc91878f 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