- Fix tree view

PR:		ports/132909
Submitted by:	Hung-Yi Chen <gaod@hychen.org>
Approved by:	maintainer timeout (1 month)
This commit is contained in:
Pav Lucistnik 2009-05-12 08:40:37 +00:00
parent 3a6b12b974
commit fb4139831a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233755
2 changed files with 15 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= htop
PORTVERSION= 0.8.1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF

View file

@ -0,0 +1,14 @@
--- ProcessList.c.orig 2009-03-21 23:21:46.000000000 +0800
+++ ProcessList.c 2009-03-21 23:22:04.000000000 +0800
@@ -563,9 +563,8 @@
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];