mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 04:04:35 +03:00
Use PROCDIR throughout instead of /proc on Linux
This commit is contained in:

committed by
cgzones

parent
1efddaf1e5
commit
37921382f4
@ -477,7 +477,7 @@ static bool LinuxProcessList_readSmapsFile(LinuxProcess* process, const char* di
|
||||
#ifdef HAVE_OPENVZ
|
||||
|
||||
static void LinuxProcessList_readOpenVZData(LinuxProcess* process, const char* dirname, const char* name) {
|
||||
if ( (access("/proc/vz", R_OK) != 0)) {
|
||||
if ( (access(PROCDIR "/vz", R_OK) != 0)) {
|
||||
process->vpid = process->super.pid;
|
||||
process->ctid = 0;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user