summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/mib.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-07-04 05:58:32 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-07-04 05:58:32 +0000
commit52dba0415f89a3472c9b55a4430bea6b67cd42ba (patch)
tree335922ad0dcfc3971b50111c921c495f0d6298ab /usr.sbin/snmpd/mib.c
parentf5b56d633ad0f16a7046ad50606fd117803b93fd (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 'usr.sbin/snmpd/mib.c')
-rw-r--r--usr.sbin/snmpd/mib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c
index 96c9681b575..2012f1c737a 100644
--- a/usr.sbin/snmpd/mib.c
+++ b/usr.sbin/snmpd/mib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.c,v 1.70 2014/06/23 03:46:17 guenther Exp $ */
+/* $OpenBSD: mib.c,v 1.71 2014/07/04 05:58:31 guenther Exp $ */
/*
* Copyright (c) 2012 Joel Knight <joel@openbsd.org>
@@ -843,7 +843,6 @@ mib_hrswrun(struct oid *oid, struct ber_oid *o, struct ber_element **elm)
/* notRunnable(3) */
ber = ber_add_integer(ber, 3);
break;
- case SZOMB:
case SDEAD:
default:
/* invalid(4) */