diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-05 19:31:18 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-06 11:14:09 -0300 |
commit | b9e0da92007a733357ce7a2893168b31a9665a9f (patch) | |
tree | a6d9f7ae81126616ba892411373ae16bdc52212b /ProcessList.c | |
parent | 509303323f869c52084a98d1ee24b7344bef8aa7 (diff) |
Collapse current subtree pressing Backspace
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c index 5b6a98f3..3d65bf4b 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -229,7 +229,7 @@ void ProcessList_sort(ProcessList* this) { ProcessList_buildTree(this, process->pid, 0, 0, direction, false); break; } - pid_t ppid = process->tgid == process->pid ? process->ppid : process->tgid; + pid_t ppid = Process_getParentPid(process); // Bisect the process vector to find parent int l = 0, r = size; // If PID corresponds with PPID (e.g. "kernel_task" (PID:0, PPID:0) |