Date: Sun, 22 Mar 2009 00:09:51 +0800 (CST) From: Hung-Yi Chen <gaod@hychen.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/132909: [PATCH] sysutils/htop: fix treeview bug Message-ID: <200903211609.n2LG9pwN036367@gaod.tfcis.org> Resent-Message-ID: <200903211610.n2LGA1Xs093529@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903211609.n2LG9pwN036367>