Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2019 07:45:58 +0000 (UTC)
From:      Shteryana Shopova <syrinx@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349265 - head/usr.sbin/bsnmpd/modules/snmp_lm75
Message-ID:  <201906210745.x5L7jwAJ074911@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: syrinx
Date: Fri Jun 21 07:45:58 2019
New Revision: 349265
URL: https://svnweb.freebsd.org/changeset/base/349265

Log:
  No need for each bsnmpd(1) module to open connection to syslog
  
  bsnmpd(1) main does that early on init and the connection is available
  to all loaded modules
  
  Event:		Vienna Hackathon 2019
  PR:		233431 , 221487
  MFC after:	2 weeks

Modified:
  head/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c

Modified: head/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c	Fri Jun 21 07:29:02 2019	(r349264)
+++ head/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c	Fri Jun 21 07:45:58 2019	(r349265)
@@ -100,7 +100,6 @@ lm75_init(struct lmodule *mod, int argc __unused, char
 	module = mod;
 
 	lm75_sensors = 0;
-	openlog("snmp_lm75", LOG_NDELAY | LOG_PID, LOG_DAEMON);
 
 	return(0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906210745.x5L7jwAJ074911>