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

committed by
BenBE

parent
56c4055fd1
commit
399add39ca
@ -110,13 +110,7 @@ static int FreeBSDProcess_compareByKey(const Process* v1, const Process* v2, Pro
|
||||
}
|
||||
|
||||
bool Process_isThread(const Process* this) {
|
||||
const FreeBSDProcess* fp = (const FreeBSDProcess*) this;
|
||||
|
||||
if (fp->kernel == 1 ) {
|
||||
return 1;
|
||||
} else {
|
||||
return Process_isUserlandThread(this);
|
||||
}
|
||||
return Process_isKernelThread(this) || Process_isUserlandThread(this);
|
||||
}
|
||||
|
||||
const ProcessClass FreeBSDProcess_class = {
|
||||
|
Reference in New Issue
Block a user