diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-11 15:27:38 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-11 15:27:38 +0000 |
commit | 99f10b2e262407d40f4c9f1c55f52fbab878a15b (patch) | |
tree | e4381a03f03f9ac586e0bb695866496a3a4d5215 /cdr.c | |
parent | 4a80fe50222de3a7683baec3b1820411c8d1d330 (diff) |
Merged revisions 9493,9528 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9493 | bweschke | 2006-02-11 00:29:34 -0600 (Sat, 11 Feb 2006) | 3 lines
kpfleming's fix from r9472 backported to 1.2
........
r9528 | kpfleming | 2006-02-11 09:22:55 -0600 (Sat, 11 Feb 2006) | 2 lines
clean up my mess from thread-starting change
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr.c')
-rw-r--r-- | cdr.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1120,7 +1120,6 @@ static int do_reload(void) int was_enabled; int was_batchmode; int res=0; - pthread_attr_t attr; ast_mutex_lock(&cdr_batch_lock); @@ -1181,7 +1180,7 @@ static int do_reload(void) if it does not exist */ if (enabled && batchmode && (!was_enabled || !was_batchmode) && (cdr_thread == AST_PTHREADT_NULL)) { ast_cond_init(&cdr_pending_cond, NULL); - if (ast_pthread_create(&cdr_thread, &attr, do_cdr, NULL) < 0) { + if (ast_pthread_create(&cdr_thread, NULL, do_cdr, NULL) < 0) { ast_log(LOG_ERROR, "Unable to start CDR thread.\n"); ast_sched_del(sched, cdr_sched); } else { |