Pre-calculate isUserlandThread flag

This commit is contained in:
Benny Baumann
2021-04-10 13:56:03 +02:00
committed by BenBE
parent cdb660adab
commit 1a1fddae85
2 changed files with 3 additions and 3 deletions

View File

@ -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);