- 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:
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
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= htop
|
||||
PORTVERSION= 0.8.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
|
14
sysutils/htop/files/patch-ProcessList.c
Normal file
14
sysutils/htop/files/patch-ProcessList.c
Normal 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];
|
Loading…
Reference in a new issue