From 0dbedf95a8fac09bcdab2be89339593973348acb Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 5 Apr 2018 19:31:18 -0300 Subject: Collapse current subtree pressing Backspace --- ProcessList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ProcessList.c') 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) -- cgit v1.2.3