diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-14 17:10:39 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-14 17:10:39 -0300 |
commit | e3f65c8ec2fe81c50514dcf21c335e5d39c1a223 (patch) | |
tree | c329c7893293b0f4f5255ee2550b91685a6cd6f9 /ProcessList.c | |
parent | b9934ffa08dc2332bea03cae0536101b7b35562e (diff) |
Make 'c' key work with threads as well.
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 aea57e7e..25ae1385 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -173,7 +173,7 @@ static void ProcessList_buildTree(ProcessList* this, pid_t pid, int level, int i for (int i = Vector_size(this->processes) - 1; i >= 0; i--) { Process* process = (Process*) (Vector_get(this->processes, i)); - if (process->show && (process->tgid == pid || (process->tgid == process->pid && process->ppid == pid))) { + if (process->show && Process_isChildOf(process, pid)) { process = (Process*) (Vector_take(this->processes, i)); Vector_add(children, process); } |