ports/132909: [PATCH] sysutils/htop: fix treeview bug

Hung-Yi Chen gaod at hychen.org
Sat Mar 21 16:10:02 UTC 2009


>Number:         132909
>Category:       ports
>Synopsis:       [PATCH] sysutils/htop: fix treeview bug
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 21 16:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Hung-Yi Chen
>Release:        FreeBSD 7.1-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD gaod.tfcis.org 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #1: Sat Jan 31 15:02:27 CST 2009 gaod at gaod.tfcis.org:/usr/src/sys/i386/compile/gaod i386

>Description:
	Fix a bug tree view doesn't work.
>How-To-Repeat:
>Fix:

--- htop begins here ---
===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/sysutils/htop.orig/files/patch-ProcessList.c /usr/ports/sysutils/htop/files/patch-ProcessList.c
--- /usr/ports/sysutils/htop.orig/files/patch-ProcessList.c	1970-01-01 08:00:00.000000000 +0800
+++ /usr/ports/sysutils/htop/files/patch-ProcessList.c	2009-03-21 23:22:27.000000000 +0800
@@ -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];
===> Done
--- htop ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list