From 11f6f5871ecc9c7cefde3df8dabd78cbff4eb8d9 Mon Sep 17 00:00:00 2001 From: Al Poole Date: Tue, 2 May 2017 21:15:44 +0100 Subject: [PATCH] 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 --- src/bin/edi_debugpanel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/edi_debugpanel.c b/src/bin/edi_debugpanel.c index 44e3280..b1483d3 100644 --- a/src/bin/edi_debugpanel.c +++ b/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;