Rename VEID to CTID in OpenVZ systems

(thanks to Thorsten Schifferdecker)
This commit is contained in:
Hisham Muhammad
2009-03-11 13:05:19 +00:00
parent 10213f3ea1
commit b93e5c00b6
4 changed files with 13 additions and 11 deletions

View File

@ -621,7 +621,7 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
#ifdef HAVE_OPENVZ
if (access("/proc/vz", R_OK) != 0) {
process->vpid = process->pid;
process->veid = 0;
process->ctid = 0;
} else {
snprintf(statusfilename, MAX_NAME, "%s/%s/stat", dirname, name);
status = ProcessList_fopen(this, statusfilename, "r");
@ -635,7 +635,7 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
"%*u %*u %*u %*u %*u %*u %*u %*u "
"%*u %*u %*u %*u %*u %*u %*u "
"%*u %*u %u %u",
&process->vpid, &process->veid);
&process->vpid, &process->ctid);
fclose(status);
}
#endif