removed #if 0 block from chan_phone, chan_zap, and chan_modem restart_monitor()

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Dwayne M. Hubbard 18 years ago
parent 654c04bfc9
commit 1cde24d633

@ -717,10 +717,8 @@ static int restart_monitor()
return -1; return -1;
} }
if (monitor_thread != AST_PTHREADT_NULL) { if (monitor_thread != AST_PTHREADT_NULL) {
/* Wake up the thread */
pthread_kill(monitor_thread, SIGURG); pthread_kill(monitor_thread, SIGURG);
#if 0
pthread_join(monitor_thread, NULL);
#endif
} else { } else {
/* Start a new monitor */ /* Start a new monitor */
if (ast_pthread_create(&monitor_thread, NULL, do_monitor, NULL) < 0) { if (ast_pthread_create(&monitor_thread, NULL, do_monitor, NULL) < 0) {

@ -1092,10 +1092,8 @@ static int restart_monitor()
ast_log(LOG_WARNING, "Unable to lock the interface list\n"); ast_log(LOG_WARNING, "Unable to lock the interface list\n");
return -1; return -1;
} }
/* Wake up the thread */
pthread_cancel(monitor_thread); pthread_cancel(monitor_thread);
#if 0
pthread_join(monitor_thread, NULL);
#endif
ast_mutex_unlock(&iflock); ast_mutex_unlock(&iflock);
} }
/* Start a new monitor */ /* Start a new monitor */

@ -6836,14 +6836,8 @@ static int restart_monitor(void)
return -1; return -1;
} }
if (monitor_thread != AST_PTHREADT_NULL) { if (monitor_thread != AST_PTHREADT_NULL) {
/* Just signal it to be sure it wakes up */ /* Wake up the thread */
#if 0
pthread_cancel(monitor_thread);
#endif
pthread_kill(monitor_thread, SIGURG); pthread_kill(monitor_thread, SIGURG);
#if 0
pthread_join(monitor_thread, NULL);
#endif
} else { } else {
/* Start a new monitor */ /* Start a new monitor */
if (ast_pthread_create(&monitor_thread, &attr, do_monitor, NULL) < 0) { if (ast_pthread_create(&monitor_thread, &attr, do_monitor, NULL) < 0) {

Loading…
Cancel
Save