summaryrefslogtreecommitdiffstats
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-06 11:14:09 -0300
commit499af738e7727f5725c856242423787bf2e89935 (patch)
treef2940130a89ef11b9caa1aeb333a443cdb98f90a
parent416ef48a6268ddd2da59827a020c0c0893e32c85 (diff)
Solaris: Implement kernel thread counting
-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