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
This commit is contained in:
Landry Breuil
2014-12-23 21:43:49 +01:00
parent 354f34762e
commit 58d67dbada

View File

@@ -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)