diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-06 22:08:02 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-06 22:08:02 +0000 |
commit | 20b06d68453a1d693e6d6d74b06569de9fda01eb (patch) | |
tree | 7b6e6993830159a35dd7abe7f0f9f0e33e59c29a /res | |
parent | fe764ed2df32bd1ced28ca458499d0accf22032c (diff) |
Disable reload functionality in res_snmp. It is not possible to initialize the
snmp library more than once without completely unloading the module and loading
it again.
(issue #9571, reported by hristo, additional helpful debug information from festr,
patch from me)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67872 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_snmp.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/res/res_snmp.c b/res/res_snmp.c index cbca08a41..6bbf23171 100644 --- a/res/res_snmp.c +++ b/res/res_snmp.c @@ -109,25 +109,7 @@ static int unload_module(void) return ((thread != AST_PTHREADT_NULL) ? pthread_join(thread, NULL) : 0); } -static int reload(void) -{ - ast_verbose(VERBOSE_PREFIX_1 "Reloading [Sub]Agent Module\n"); - - res_snmp_dont_stop = 0; - if (thread != AST_PTHREADT_NULL) - pthread_join(thread, NULL); - thread = AST_PTHREADT_NULL; - load_config(); - - res_snmp_dont_stop = 1; - if (res_snmp_enabled) - return ast_pthread_create_background(&thread, NULL, agent_thread, NULL); - else - return 0; -} - AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "SNMP [Sub]Agent for Asterisk", .load = load_module, .unload = unload_module, - .reload = reload, ); |