mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
No need to check for change when no action is required
This commit is contained in:

committed by
Christian Göttsche

parent
98943d595e
commit
3cb96f1a36
@ -429,9 +429,8 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||
free(dfp->jname);
|
||||
dfp->jname = DragonFlyBSDProcessList_readJailName(dfpl, kproc->kp_jailid);
|
||||
}
|
||||
if (proc->ppid != kproc->kp_ppid) { // if there are reapers in the system, process can get reparented anytime
|
||||
proc->ppid = kproc->kp_ppid;
|
||||
}
|
||||
// if there are reapers in the system, process can get reparented anytime
|
||||
proc->ppid = kproc->kp_ppid;
|
||||
if (proc->st_uid != kproc->kp_uid) { // some processes change users (eg. to lower privs)
|
||||
proc->st_uid = kproc->kp_uid;
|
||||
proc->user = UsersTable_getRef(super->usersTable, proc->st_uid);
|
||||
|
Reference in New Issue
Block a user