diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-04-10 14:08:26 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-05-23 09:22:21 +0200 |
commit | 7224d0e0831ee53d5028915f87dffd51ffa0d6fa (patch) | |
tree | c193e41f03dd30cf414d427c5e4e71b127842d98 /darwin | |
parent | 1a1fddae851b344b0a89a8f2753e2d2487f34064 (diff) |
Move kernel/userland thread handling to platform-independent implementation
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/DarwinProcess.c | 7 | ||||
-rw-r--r-- | darwin/DarwinProcess.h | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/darwin/DarwinProcess.c b/darwin/DarwinProcess.c index 65f45ee1..e07d4e82 100644 --- a/darwin/DarwinProcess.c +++ b/darwin/DarwinProcess.c @@ -96,11 +96,6 @@ static int DarwinProcess_compareByKey(const Process* v1, const Process* v2, Proc } } -bool Process_isThread(const Process* this) { - (void) this; - return false; -} - static char* DarwinProcess_getCmdLine(const struct kinfo_proc* k, int* cmdlineBasenameEnd) { /* This function is from the old Mac version of htop. Originally from ps? */ int mib[3], argmax, nargs, c = 0; @@ -272,6 +267,8 @@ void DarwinProcess_setFromKInfoProc(Process* proc, const struct kinfo_proc* ps, proc->session = 0; /* TODO Get the session id */ proc->tpgid = ps->kp_eproc.e_tpgid; proc->tgid = proc->pid; + proc->isKernelThread = false; + proc->isUserlandThread = false; proc->st_uid = ps->kp_eproc.e_ucred.cr_uid; dp->translated = ps->kp_proc.p_flag & P_TRANSLATED; diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h index 3fbcc792..f01efce1 100644 --- a/darwin/DarwinProcess.h +++ b/darwin/DarwinProcess.h @@ -29,8 +29,6 @@ Process* DarwinProcess_new(const Settings* settings); void Process_delete(Object* cast); -bool Process_isThread(const Process* this); - void DarwinProcess_setFromKInfoProc(Process* proc, const struct kinfo_proc* ps, bool exists); void DarwinProcess_setFromLibprocPidinfo(DarwinProcess* proc, DarwinProcessList* dpl, double time_interval); |