Commit c67e482c authored by Martin "eto" Misuth's avatar Martin "eto" Misuth
Browse files

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
parent e0b6e2ee
...@@ -441,6 +441,7 @@ void ProcessList_goThroughEntries(ProcessList* this) { ...@@ -441,6 +441,7 @@ void ProcessList_goThroughEntries(ProcessList* this) {
fp->kernel = 1; fp->kernel = 1;
else else
fp->kernel = 0; fp->kernel = 0;
proc->ppid = kproc->ki_ppid;
proc->tpgid = kproc->ki_tpgid; proc->tpgid = kproc->ki_tpgid;
proc->tgid = kproc->ki_pid; proc->tgid = kproc->ki_pid;
proc->session = kproc->ki_sid; proc->session = kproc->ki_sid;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment