[prev in list] [next in list] [prev in thread] [next in thread]
List: net-snmp-bugs
Subject: [ net-snmp-Bugs-558837 ] snmptrapd print to file buffered on NT
From: noreply () sourceforge ! net
Date: 2002-05-21 20:01:58
[Download RAW message or body]
Bugs item #558837, was opened at 2002-05-21 16:01
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=112694&aid=558837&group_id=12694
Category: apps
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Todd Wohlers (twohlers)
Assigned to: Nobody/Anonymous (nobody)
Summary: snmptrapd print to file buffered on NT
Initial Comment:
The snmptrapd print to file option (-o) buffers the output
on Windows platforms only. On Solaris the output is
line buffered.
The problem appears to lie with the following code:
ucd-snmp-4.2.3/snmplib/snmp_logging.c(line 162):
setvbuf( logfile, NULL, _IOLBF, BUFSIZ );
_IOLBF on Solaris enables buffering on a line at a
time, but on Windows it enables full buffering.
One possible solution would be to call fflush() after
outputing a line of text on Windows platforms only.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=112694&aid=558837&group_id=12694
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic