Solaris: If a process has a running LWP, then the process is by definition running

This commit is contained in:
Guy M. Broome 2018-03-27 14:11:22 -04:00 committed by Hisham Muhammad
parent b9e0da9200
commit 416ef48a62
1 changed files with 2 additions and 0 deletions

View File

@ -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;