mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 04:04:35 +03:00
Pre-calculate isUserlandThread flag
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user