FreeBSD: simplify kernel thread logic

This commit is contained in:
Christian Göttsche
2021-01-27 15:11:54 +01:00
committed by BenBE
parent 56c4055fd1
commit 399add39ca
3 changed files with 4 additions and 14 deletions

View File

@ -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 = {