summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy M. Broome <thrirhrafnir@gmail.com>2018-03-27 14:11:22 -0400
committerHisham Muhammad <hisham@gobolinux.org>2018-04-06 11:14:09 -0300
commit416ef48a6268ddd2da59827a020c0c0893e32c85 (patch)
tree0fbff8b06305ed5ec7b5e7efcd214db476324553
parentb9e0da92007a733357ce7a2893168b31a9665a9f (diff)
Solaris: If a process has a running LWP, then the process is by definition running
-rw-r--r--solaris/SolarisProcessList.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c
index 931df738..cf2c440c 100644
--- a/solaris/SolarisProcessList.c
+++ b/solaris/SolarisProcessList.c
@@ -362,6 +362,8 @@ void ProcessList_enumerateLWPs(Process* proc, char* name, ProcessList* pl, struc
slwp->poolid = sproc->poolid;
slwp->contid = sproc->contid;
}
+ // Top-level process only gets this for the representative LWP
+ if (lwp->state == 'O') proc->state = 'O';
if (slwp->kernel) {
if(!hideKernelThreads) {
lwp->show = true;

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