summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorGuy M. Broome <thrirhrafnir@gmail.com>2018-03-27 14:26:24 -0400
committerHisham Muhammad <hisham@gobolinux.org>2018-04-05 19:38:13 -0300
commit75598c138969c81485a17e3b709f236e7cd15049 (patch)
tree713d5e53f959b40af8d35cb8b9da6e97d2a91dd6 /solaris
parentc235b45cd6668cfed104aa3a357e7f598509a967 (diff)
Solaris: Implement kernel thread counting
Diffstat (limited to 'solaris')
-rw-r--r--solaris/SolarisProcessList.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c
index cf2c440c..c42f5b0a 100644
--- a/solaris/SolarisProcessList.c
+++ b/solaris/SolarisProcessList.c
@@ -413,6 +413,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
dir = opendir(PROCDIR);
if (!dir) return; // Is proc mounted?
+ // We always count the scheduler
+ this->kernelThreads = 1;
while ((entry = readdir(dir)) != NULL) {
addRunning = 0;
addTotal = 0;
@@ -518,7 +520,7 @@ void ProcessList_goThroughEntries(ProcessList* this) {
ProcessList_enumerateLWPs(proc, name, this, tv);
}
proc->show = !(hideKernelThreads && sproc->kernel);
- if (_pstatus.pr_flags & sproc->kernel) {
+ if (sproc->kernel) {
if (hideKernelThreads) {
addRunning = 0;
addTotal = 0;

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