From 7fe1bf0283f4ea8743b15c95ce5b4f3aa61af9da Mon Sep 17 00:00:00 2001 From: pav Date: Tue, 12 May 2009 08:40:37 +0000 Subject: - Fix tree view PR: ports/132909 Submitted by: Hung-Yi Chen Approved by: maintainer timeout (1 month) --- sysutils/htop/Makefile | 1 + sysutils/htop/files/patch-ProcessList.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 sysutils/htop/files/patch-ProcessList.c diff --git a/sysutils/htop/Makefile b/sysutils/htop/Makefile index 1e4d632c3dea..c751c0bad82e 100644 --- a/sysutils/htop/Makefile +++ b/sysutils/htop/Makefile @@ -7,6 +7,7 @@ PORTNAME= htop PORTVERSION= 0.8.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= SF diff --git a/sysutils/htop/files/patch-ProcessList.c b/sysutils/htop/files/patch-ProcessList.c new file mode 100644 index 000000000000..d91b39fe6d27 --- /dev/null +++ b/sysutils/htop/files/patch-ProcessList.c @@ -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]; -- cgit