From dc38fc2da39e35141074d31fd45bffd6f1761397 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 17 Feb 2009 17:12:59 +0000 Subject: [PATCH] Fix missing tree view when userland threads are hidden (thanks to Josh Stone) --- ChangeLog | 2 ++ ProcessList.c | 4 +--- 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];