Fix missing tree view when userland threads are hidden

(thanks to Josh Stone)
This commit is contained in:
Hisham Muhammad 2009-02-17 17:12:59 +00:00
parent 0baba6d7b4
commit dc38fc2da3
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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];