Add micro-http server and abstract manager interface, make snmp not die

on reload.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2006-03-25 23:50:09 +00:00
parent b0ac62573a
commit 9164eac21a
16 changed files with 823 additions and 172 deletions

View File

@@ -31,7 +31,7 @@ int res_snmp_agentx_subagent;
int res_snmp_dont_stop;
int res_snmp_enabled;
static pthread_t thread;
static pthread_t thread = AST_PTHREADT_NULL;
static int load_config(void)
{
@@ -111,8 +111,9 @@ int reload(void)
ast_verbose(VERBOSE_PREFIX_1 "Reloading [Sub]Agent Module\n");
res_snmp_dont_stop = 0;
pthread_join(thread, NULL);
if (thread != AST_PTHREADT_NULL)
pthread_join(thread, NULL);
thread = AST_PTHREADT_NULL;
load_config();
res_snmp_dont_stop = 1;