summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-04-10 13:56:03 +0200
committerBenBE <BenBE@geshi.org>2021-05-23 09:22:21 +0200
commit1a1fddae851b344b0a89a8f2753e2d2487f34064 (patch)
tree540cc6cc1a03db0cbf602d89e1e11f763f63c5e7 /linux/LinuxProcessList.c
parentcdb660adabada0c293ed86ebf5638d435950a03f (diff)
Pre-calculate isUserlandThread flag
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r--linux/LinuxProcessList.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index c2effbfc..66b648ea 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -1315,6 +1315,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
LinuxProcess* lp = (LinuxProcess*) proc;
proc->tgid = parent ? parent->pid : pid;
+ lp->isUserlandThread = proc->pid != proc->tgid;
#ifdef HAVE_OPENAT
int procFd = openat(dirFd, entry->d_name, O_PATH | O_DIRECTORY | O_NOFOLLOW);

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