freebsd-ports/sysutils/htop/files/patch-ProcessList.c
Pav Lucistnik fb4139831a - Fix tree view
PR:		ports/132909
Submitted by:	Hung-Yi Chen <gaod@hychen.org>
Approved by:	maintainer timeout (1 month)
2009-05-12 08:40:37 +00:00

14 lines
439 B
C

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