From 214166a049c2a6ac454dbb37b85b04c039a6a17a Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Thu, 31 Aug 2023 08:46:38 +1000 Subject: Fix FreeBSD builds after some recent code refactoring Resolves https://github.com/htop-dev/htop/issues/1290 --- freebsd/FreeBSDProcessList.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'freebsd') diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index aabb61cc..b3781ad7 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -156,7 +156,7 @@ IGNORE_WCASTQUAL_END } void ProcessList_goThroughEntries(ProcessList* super) { - const Machine* host = super->host; + const Machine* host = super->super.host; const FreeBSDMachine* fhost = (const FreeBSDMachine*) host; const Settings* settings = host->settings; bool hideKernelThreads = settings->hideKernelThreads; @@ -215,7 +215,7 @@ void ProcessList_goThroughEntries(ProcessList* super) { fp->jname = FreeBSDProcessList_readJailName(kproc); } // if there are reapers in the system, process can get reparented anytime - proc->ppid = kproc->ki_ppid; + Process_setParent(proc, kproc->ki_ppid); if (proc->st_uid != kproc->ki_uid) { // some processes change users (eg. to lower privs) proc->st_uid = kproc->ki_uid; -- cgit v1.2.3