summaryrefslogtreecommitdiffstats
path: root/freebsd/FreeBSDProcess.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-27 15:11:54 +0100
committerBenBE <BenBE@geshi.org>2021-01-30 14:21:26 +0100
commit399add39ca380c6b97bf45685e041a8dca3bf0b4 (patch)
tree40aa7bad9b0f4e398cb82c82122a07592c6e1b74 /freebsd/FreeBSDProcess.h
parent56c4055fd18e34728938b6a9185178ac6df4f3bb (diff)
FreeBSD: simplify kernel thread logic
Diffstat (limited to 'freebsd/FreeBSDProcess.h')
-rw-r--r--freebsd/FreeBSDProcess.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/FreeBSDProcess.h b/freebsd/FreeBSDProcess.h
index 6bf2c93d..750e485e 100644
--- a/freebsd/FreeBSDProcess.h
+++ b/freebsd/FreeBSDProcess.h
@@ -20,14 +20,14 @@ extern const char* const nodevStr;
typedef struct FreeBSDProcess_ {
Process super;
- int kernel;
+ bool isKernelThread;
int jid;
char* jname;
const char* ttyPath;
} FreeBSDProcess;
static inline bool Process_isKernelThread(const Process* this) {
- return ((const FreeBSDProcess*)this)->kernel == 1;
+ return ((const FreeBSDProcess*)this)->isKernelThread;
}
static inline bool Process_isUserlandThread(const Process* this) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy