[Xfce4-commits] [apps/xfce4-taskmanager] 01/03: Check against SSTOP status to decide if the process was stopped
noreply at xfce.org
noreply at xfce.org
Tue Dec 23 21:48:54 CET 2014
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/xfce4-taskmanager.
commit 58d67dbada1b856da48325aacc48de24bb72580c
Author: Landry Breuil <landry at xfce.org>
Date: Tue Dec 23 21:43:49 2014 +0100
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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list