summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/htop/htop-treeview.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-07 15:44:04 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-07 15:44:04 (GMT)
commit24bf31183a714449ee1ae6d93283722ae4f55e6d (patch)
treed2fefa55e0b8312fb0e938729ffb1823e1bc0dfe /abs/extra-testing/htop/htop-treeview.patch
parentafc238bb913a96a485f09d6e14357395772885f5 (diff)
downloadlinhes_pkgbuild-24bf31183a714449ee1ae6d93283722ae4f55e6d.zip
linhes_pkgbuild-24bf31183a714449ee1ae6d93283722ae4f55e6d.tar.gz
linhes_pkgbuild-24bf31183a714449ee1ae6d93283722ae4f55e6d.tar.bz2
Adding htop.
Closes FS#267
Diffstat (limited to 'abs/extra-testing/htop/htop-treeview.patch')
-rw-r--r--abs/extra-testing/htop/htop-treeview.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/extra-testing/htop/htop-treeview.patch b/abs/extra-testing/htop/htop-treeview.patch
new file mode 100644
index 0000000..bcf6334
--- /dev/null
+++ b/abs/extra-testing/htop/htop-treeview.patch
@@ -0,0 +1,12 @@
+diff -ur htop-0.8.1.orig/ProcessList.c htop-0.8.1/ProcessList.c
+--- htop-0.8.1.orig/ProcessList.c 2008-09-23 08:23:14.000000000 +0200
++++ htop-0.8.1/ProcessList.c 2008-12-09 15:14:56.000000000 +0100
+@@ -331,7 +331,7 @@
+
+ for (int i = Vector_size(this->processes) - 1; i >= 0; i--) {
+ Process* process = (Process*) (Vector_get(this->processes, i));
+- if (process->tgid == pid || (process->tgid == process->pid && process->ppid == pid)) {
++ if (process->tgid == pid || process->ppid == pid) {
+ Process* process = (Process*) (Vector_take(this->processes, i));
+ Vector_add(children, process);
+ }