summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2009-02-17 17:12:59 +0000
committerHisham Muhammad <hisham@gobolinux.org>2009-02-17 17:12:59 +0000
commitdc38fc2da39e35141074d31fd45bffd6f1761397 (patch)
tree2df155d5824c63234efdff1f2905bf817e228d1b
parent0baba6d7b420b1b4953c8c8a432ab8c7e1e18ab8 (diff)
Fix missing tree view when userland threads are hidden
(thanks to Josh Stone)
-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];

© 2014-2024 Faster IT GmbH | imprint | privacy policy