aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/800-tree-view-without-userland-threads.patch
blob: db8c185195a7b29f2884b8791ccb22b17b3c4c3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fix tree view when userland threads are hidden.
Index: htop/ProcessList.c
===================================================================
--- htop.orig/ProcessList.c	2009-02-25 23:08:35.396191440 +0200
+++ htop/ProcessList.c	2009-02-25 23:10:26.525680664 +0200
@@ -563,9 +563,7 @@
                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];

© 2014-2024 Faster IT GmbH | imprint | privacy policy