diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-05 19:31:18 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-05 19:38:13 -0300 |
commit | 0dbedf95a8fac09bcdab2be89339593973348acb (patch) | |
tree | db2ae61fca98ea0fd4c3b413d7fadd196f38d975 /ProcessList.c | |
parent | 42c3a1fcb39458b6f8f39539baef94158bacf164 (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 48b2d955..7482b037 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -228,7 +228,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) |