From 58d67dbada1b856da48325aacc48de24bb72580c Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Tue, 23 Dec 2014 21:43:49 +0100 Subject: [PATCH] Check against SSTOP status to decide if the process was stopped Sleeping doesnt have the same semantics as on linux.. Fixes Stop/Continue actions on a process --- src/task-manager-bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task-manager-bsd.c b/src/task-manager-bsd.c index 79700a2..79d1b35 100644 --- a/src/task-manager-bsd.c +++ b/src/task-manager-bsd.c @@ -184,7 +184,7 @@ pid_is_sleeping (guint pid) #else errx(1, "could not read kern.proc2 for pid %d", pid); #endif - return (kp.p_stat == SSLEEP ? TRUE : FALSE); + return (kp.p_stat == SSTOP ? TRUE : FALSE); } gboolean get_cpu_usage (gushort *cpu_count, gfloat *cpu_user, gfloat *cpu_system)