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
edi-0.8
Al Poole 6 years ago committed by Andy Williams
parent 58835faa97
commit 11f6f5871e
  1. 4
      src/bin/edi_debugpanel.c

@ -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…
Cancel
Save