mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
FreeBSD: simplify kernel thread logic
This commit is contained in:

committed by
BenBE

parent
56c4055fd1
commit
399add39ca
@ -485,11 +485,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||
if (!preExisting) {
|
||||
fp->jid = kproc->ki_jid;
|
||||
proc->pid = kproc->ki_pid;
|
||||
if ( ! ((kproc->ki_pid == 0) || (kproc->ki_pid == 1) ) && kproc->ki_flag & P_SYSTEM) {
|
||||
fp->kernel = 1;
|
||||
} else {
|
||||
fp->kernel = 0;
|
||||
}
|
||||
fp->isKernelThread = kproc->ki_pid != 0 && kproc->ki_pid != 1 && (kproc->ki_flag & P_SYSTEM);
|
||||
proc->ppid = kproc->ki_ppid;
|
||||
proc->tpgid = kproc->ki_tpgid;
|
||||
proc->tgid = kproc->ki_pid;
|
||||
|
Reference in New Issue
Block a user