Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
a8975809
Commit
a8975809
authored
Nov 27, 2014
by
Hisham Muhammad
Browse files
check /proc only if using /proc
parent
5578a316
Changes
1
Hide whitespace changes
Inline
Side-by-side
htop.c
View file @
a8975809
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment