[Asterisk-cvs] asterisk logger.c,1.44,1.45
citats at lists.digium.com
citats at lists.digium.com
Tue Sep 28 17:11:24 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk
Modified Files:
logger.c
Log Message:
Fix verbose logger queue so that list doesnt get touched without msglist_lock being held
Index: logger.c
===================================================================
RCS file: /usr/cvsroot/asterisk/logger.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- logger.c 5 Sep 2004 03:48:05 -0000 1.44
+++ logger.c 28 Sep 2004 21:13:50 -0000 1.45
@@ -455,8 +455,8 @@
{
struct msglist *m, *tmp;
- m = list;
ast_mutex_lock(&msglist_lock);
+ m = list;
while(m) {
if (m->msg) {
free(m->msg);
@@ -656,8 +656,8 @@
int ast_verbose_dmesg(void (*v)(const char *string, int opos, int replacelast, int complete))
{
struct msglist *m;
- m = list;
ast_mutex_lock(&msglist_lock);
+ m = list;
while(m) {
/* Send all the existing entries that we have queued (i.e. they're likely to have missed) */
v(m->msg, 0, 0, 1);
More information about the svn-commits
mailing list