summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-11-23 14:44:31 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-11-23 14:44:31 +0100
commit6c2849ec816a9f717ec629ad0478bcb465cc8ebd (patch)
treebf3c93ea86828840ec7670b949f996a7e4ed2c2c /linux/LinuxProcessList.c
parent003f2c06a4a346ecfcc9272700a6fa71d381c43e (diff)
Linux: fix display of new thread for one cycle when hidden
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r--linux/LinuxProcessList.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index b31edb2d..b40b77de 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -1047,8 +1047,6 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, const char*
continue;
}
- proc->show = true;
-
#ifdef HAVE_TASKSTATS
if (settings->flags & PROCESS_FLAG_IO)
LinuxProcessList_readIoFile(lp, dirname, name, now);
@@ -1167,6 +1165,9 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, const char*
}
}
+ /* Set at the end when we know if a new entry is a thread */
+ proc->show = ! ((hideKernelThreads && Process_isKernelThread(proc)) || (hideUserlandThreads && Process_isUserlandThread(proc)));
+
pl->totalTasks++;
if (proc->state == 'R')
pl->runningTasks++;

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