summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--ProcessList.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2af040aa..7f3c95e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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];