summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorMartin "eto" Misuth <et.code@ethome.sk>2015-12-17 08:48:53 +0100
committerMartin "eto" Misuth <et.code@ethome.sk>2015-12-17 08:48:53 +0100
commitc67e482c67b4e4a99adb95fe35945204037a0c77 (patch)
tree237757d3e6a58fd2f7752466bf9af9d991c01874 /freebsd
parente0b6e2eef2f9a401419d06273681e4486d1b4484 (diff)
fixed bug with PPID of parent not being set on first process list scan pass.
this caused htop to show processes as if freebsd kernel was their parent. on next pass reparenting code took chance to run, and that caused process to jump around. this fixed behaviour should be the correct one
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/FreeBSDProcessList.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c
index 9ace433a..e8d6f137 100644
--- a/freebsd/FreeBSDProcessList.c
+++ b/freebsd/FreeBSDProcessList.c
@@ -441,6 +441,7 @@ void ProcessList_goThroughEntries(ProcessList* this) {
fp->kernel = 1;
else
fp->kernel = 0;
+ proc->ppid = kproc->ki_ppid;
proc->tpgid = kproc->ki_tpgid;
proc->tgid = kproc->ki_pid;
proc->session = kproc->ki_sid;

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