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 0dbedf95a8
commit c235b45cd6
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;