Skip to content

Commit

Permalink
Fix FreeBSD builds after some recent code refactoring
Browse files Browse the repository at this point in the history
Resolves #1290
  • Loading branch information
natoscott committed Aug 30, 2023
1 parent bd50bec commit 214166a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freebsd/FreeBSDProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 214166a

Please sign in to comment.