aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/800-tree-view-without-userland-threads.patch
blob: 22c886dc5c2637de0b7cde0780ad47cd9976df9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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