summaryrefslogtreecommitdiffstats
path: root/solaris
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-05 19:38:13 -0300
commitc235b45cd6668cfed104aa3a357e7f598509a967 (patch)
treea9bd5d82a27f15b8d738873d95bd5e37d39d4772 /solaris
parent0dbedf95a8fac09bcdab2be89339593973348acb (diff)
Solaris: If a process has a running LWP, then the process is by definition running
Diffstat (limited to 'solaris')
-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