From: SourceForge.net <no...@so...> - 2006-12-28 23:01:31
|
Patches item #1623447, was opened at 2006-12-28 08:59 Message generated for change (Comment added) made by tanders You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=1623447&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Thomas Anders (tanders) Summary: Solaris hrSWRun fix Initial Comment: I noticed that when there is a lot of processes which spawn/die fast enough, snmpd can just "stop" after random number of entries. Upon investigating, i noticed that in hrSWRun, on SunOS9, in use is "/proc" interface for getting process info. In my case, where there is a lot of fast dying processes, snmpd will try to open "/proc" entries. I case that entry (process file) doesn't exists, snmpd will wrongly return NULL, and end mib table! This is wrong. It should, instead, return NULL pojnter in proc_buf, which is later nicely handled by returning "<exited>" as process name and so on. I'm guessing this is copy-paste error from some other previously written code ... Attached patch fix this. H. ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2006-12-29 00:01 Message: Logged In: YES user_id=848638 Originator: NO Thanks for the patch! It has been applied to the 5.2.x, 5.3.x and 5.4.x code branches and the main development tree, and will appear in future releases of the Net-SNMP package. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=1623447&group_id=12694 |