forked from enlightenment/edi
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:
parent
58835faa97
commit
11f6f5871e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue