diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | ProcessList.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,8 @@ What's new in version 0.8.2 +* BUGFIX: Fix missing tree view when userland threads are hidden + (thanks to Josh Stone) * BUGFIX: Fix for VPID on OpenVZ systems (thanks to Wolfgang Frisch) 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]; |