Dave,

While investigating the nightly build failure for the main branch on
x86-freebsd1, it turns out that sometimes the agent isn't shutting down
properly after a HUP. 

The problem is that mteObjects registers a callback for POST_READ_CONFIG,
which inserts defaults into the container without checking to see if they are
already there (as is the case when a HUP is received). This results in
duplicate entries, which causes and infinite loop when using
CONTAINER_FIRST/CONTAINER_NEXT as the loop controls. (Using CONTAINER_FOR_EACH
or the iterator stuff would have been ok.)

I've just tweaked the container stuff, and in particular the binary_array
container, to default to not allowing duplicate keys to be inserted (been
meaning to do that for a while). This will fix the immediate problem, but a
better solution in the mte object stuff is probably warranted.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to