On Tue, 15 Nov 2005 10:14:15 +0000 Dave wrote:
DS> I've also re-read this thread, and am somewhat confused as to
DS> exactly:
DS> 
DS>   a)  what the original problem was
DS>              (esp. this get-next loop that went bad)

It seems one of the examples (don't recall which) wasn't indicating a end of
data condition correctly, and ended up looping forever inside the library. The
loop was "while(1)", so it never got to the main loop to notice that a sigterm
had cleared the running flag.

DS>   b)  what the extent of the backward
DS>              compatibility problems were

The original fix in 5.3.pre2 (changing "while(1)" to "while(running)") worked
for snmpd and snmptrapd, but broke subagents which didn't declare this global
(or worse, declared it but used it for something else). This is what Magnus
reported.

DS>   c)  what was being proposed to fix it

The latest change int 5.3.pre3 was to *restore* backwards compatibility by 

 - changing the get-next loop condition to "while(netsnmp_running)"
 - declaring netsnmp_running in the agent library
 - updating snmpd/snmptrapd to use the library globa netsnmp_running instead of
   the application global running in the app loops and signal handlers

-- 
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. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to