mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 22:38:08 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user