summaryrefslogtreecommitdiff
path: root/res/res_snmp.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-06-06 22:09:58 +0000
committerRussell Bryant <russell@russellbryant.com>2007-06-06 22:09:58 +0000
commit9c78e261d660e8fdc05bf4ee980757e88f005e5e (patch)
tree0c779fe7f69e569a0dca9612f4a9f3e4658f79d4 /res/res_snmp.c
parent9d05ff8ed5f2c898370896ff7a8bb67885596ba1 (diff)
Merged revisions 67872 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67872 | russell | 2007-06-06 17:08:02 -0500 (Wed, 06 Jun 2007) | 6 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@67875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_snmp.c')
-rw-r--r--res/res_snmp.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/res/res_snmp.c b/res/res_snmp.c
index b4a9e0fca..a0be455ef 100644
--- a/res/res_snmp.c
+++ b/res/res_snmp.c
@@ -112,25 +112,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,
);