diff options
author | Nathan Scott <nathans@redhat.com> | 2023-08-31 08:46:38 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2023-08-31 08:46:38 +1000 |
commit | 214166a049c2a6ac454dbb37b85b04c039a6a17a (patch) | |
tree | 33162a621c11b5e089e171727c427e06acd2e0c8 /freebsd | |
parent | bd50bec79e078e220ac5e504ea82f55e3920c76c (diff) |
Fix FreeBSD builds after some recent code refactoring
Resolves https://github.com/htop-dev/htop/issues/1290
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/FreeBSDProcessList.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |