svn commit: r241995 - stable/9/usr.sbin/bsnmpd/modules/snmp_hostres

Gleb Smirnoff glebius at FreeBSD.org
Wed Oct 24 10:30:41 UTC 2012


Author: glebius
Date: Wed Oct 24 10:30:40 2012
New Revision: 241995
URL: http://svn.freebsd.org/changeset/base/241995

Log:
  Merge r240354 from head:
    Do not count kernel threads as processes for hrSystemProcesses OID.
  
    PR:           bin/160494
    Submitted by: Jeremy Chadwick <freebsd jdc.parodius.com>

Modified:
  stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
Directory Properties:
  stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/   (props changed)

Modified: stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
==============================================================================
--- stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c	Wed Oct 24 10:28:12 2012	(r241994)
+++ stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c	Wed Oct 24 10:30:40 2012	(r241995)
@@ -238,7 +238,7 @@ OS_getSystemProcesses(uint32_t *proc_cou
 	if (hr_kd == NULL)
 		return (SNMP_ERR_GENERR);
 
-	if (kvm_getprocs(hr_kd, KERN_PROC_ALL, 0, &pc) == NULL) {
+	if (kvm_getprocs(hr_kd, KERN_PROC_PROC, 0, &pc) == NULL) {
 		syslog(LOG_ERR, "kvm_getprocs failed: %m");
 		return (SNMP_ERR_GENERR);
 	}


More information about the svn-src-stable-9 mailing list