diff options
author | Guy M. Broome <thrirhrafnir@gmail.com> | 2018-03-27 14:11:22 -0400 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-06 11:14:09 -0300 |
commit | 416ef48a6268ddd2da59827a020c0c0893e32c85 (patch) | |
tree | 0fbff8b06305ed5ec7b5e7efcd214db476324553 | |
parent | b9e0da92007a733357ce7a2893168b31a9665a9f (diff) |
Solaris: If a process has a running LWP, then the process is by definition running
-rw-r--r-- | solaris/SolarisProcessList.c | 2 |
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; |