mirror of https://github.com/xzeldon/htop.git
added support for effective UID/username change detection
This commit is contained in:
parent
563abbc44b
commit
bc84920b91
|
@ -224,6 +224,10 @@ void ProcessList_goThroughEntries(ProcessList* this) {
|
||||||
free(fp->jname);
|
free(fp->jname);
|
||||||
fp->jname = FreeBSDProcessList_readJailName(kproc);
|
fp->jname = FreeBSDProcessList_readJailName(kproc);
|
||||||
}
|
}
|
||||||
|
if(proc->st_uid != kproc->ki_uid) {
|
||||||
|
proc->st_uid = kproc->ki_uid;
|
||||||
|
proc->user = UsersTable_getRef(this->usersTable, proc->st_uid);
|
||||||
|
}
|
||||||
if (settings->updateProcessNames) {
|
if (settings->updateProcessNames) {
|
||||||
free(proc->comm);
|
free(proc->comm);
|
||||||
proc->comm = FreeBSDProcessList_readProcessName(fpl->kd, kproc, &proc->basenameOffset);
|
proc->comm = FreeBSDProcessList_readProcessName(fpl->kd, kproc, &proc->basenameOffset);
|
||||||
|
|
Loading…
Reference in New Issue