diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2009-02-17 17:12:59 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2009-02-17 17:12:59 +0000 |
commit | dc38fc2da39e35141074d31fd45bffd6f1761397 (patch) | |
tree | 2df155d5824c63234efdff1f2905bf817e228d1b /ProcessList.c | |
parent | 0baba6d7b420b1b4953c8c8a432ab8c7e1e18ab8 (diff) |
Fix missing tree view when userland threads are hidden
(thanks to Josh Stone)
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ProcessList.c b/ProcessList.c index c45714bc..0ac015fd 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -563,9 +563,7 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process process->pid = pid; } } - if (parent) { - process->tgid = parent->pid; - } + process->tgid = parent ? parent->pid : pid; if (showUserlandThreads && (!parent || pid != parent->pid)) { char subdirname[MAX_NAME+1]; |