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:
@@ -184,7 +184,7 @@ pid_is_sleeping (guint pid)
|
|||||||
#else
|
#else
|
||||||
errx(1, "could not read kern.proc2 for pid %d", pid);
|
errx(1, "could not read kern.proc2 for pid %d", pid);
|
||||||
#endif
|
#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)
|
gboolean get_cpu_usage (gushort *cpu_count, gfloat *cpu_user, gfloat *cpu_system)
|
||||||
|
|||||||
Reference in New Issue
Block a user