debugpanel : Use correct system process state naming for 4.4BSD derivatives and Linux.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4841
This commit is contained in:
Al Poole 2017-05-02 21:15:44 +01:00 committed by Andy Williams
parent 58835faa97
commit 11f6f5871e
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ _edi_debug_process_id(int *state)
child_pid = kp.ki_pid;
if (state)
{
if (kp.ki_stat == 3)
if (kp.ki_stat == SRUN || kp.ki_stat == SSLEEP)
*state = DEBUG_PROCESS_ACTIVE;
else
*state = DEBUG_PROCESS_SLEEPING;
@ -217,7 +217,7 @@ _edi_debug_process_id(int *state)
{
if (state)
{
if (p[0] == 'S')
if (p[0] == 'S' || p[0] == 'R')
*state = DEBUG_PROCESS_ACTIVE;
else
*state = DEBUG_PROCESS_SLEEPING;