On 23/08/07, Nicky <[EMAIL PROTECTED]> wrote:
> Hi all.I write a XXX module(dlmod load) in linux. If I type "killall snmpd",
> the shutdown_XXX seems to not be called.

That's correct.
The dlmod processing calls a routine 'deinit_XXX' when the module
is unloaded, rather than 'shutdown_XXX'.   Historical Reasons, don't
ask!

There's a patch in the main development code, that brings this more
into line with the usual behaviour.  See
   
http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/agent/mibgroup/ucd-snmp/dlmod.c?r1=14373&r2=16312&view=patch

for the patch itself, and the coders thread "shutdown_foo or deinit_foo"
for a discussion of this problem.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to