summaryrefslogtreecommitdiffstats
path: root/procname.c
diff options
context:
space:
mode:
authorguenther <guenther>2014-07-04 05:58:31 +0000
committerguenther <guenther>2014-07-04 05:58:31 +0000
commitd1f939cede4a1eb7137feb892450e0e2b650cc6c (patch)
tree92e4a5e760e47f87ccf1a48172339da027876fb2 /procname.c
parent1aae53596dd1bd657d534c7a0392826cbff2265c (diff)
Track whether a process is a zombie or not yet fully built via flags
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@
Diffstat (limited to 'procname.c')
-rw-r--r--procname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procname.c b/procname.c
index 5d3bc306..7ee076e7 100644
--- a/procname.c
+++ b/procname.c
@@ -33,7 +33,7 @@
#define is_runnable(p) \
((p)->p_stat == SRUN || (p)->p_stat == SIDL || (p)->p_stat == SONPROC)
#define is_stopped(p) \
- ((p)->p_stat == SSTOP || (p)->p_stat == SZOMB || (p)->p_stat == SDEAD)
+ ((p)->p_stat == SSTOP || (p)->p_stat == SDEAD)
struct kinfo_proc *cmp_procs(struct kinfo_proc *, struct kinfo_proc *);
char *get_proc_name(int, char *);