diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-28 21:13:50 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-28 21:13:50 +0000 |
commit | 7ab474aedad3b78f1c0387e8cbf354643a422f73 (patch) | |
tree | f3774357517e34ac9dcd2000b2f11011084b7509 /logger.c | |
parent | 0148ea8a110889c99ce7dffefa0eea971d31fd29 (diff) |
Fix verbose logger queue so that list doesnt get touched without msglist_lock being held
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3851 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'logger.c')
-rwxr-xr-x | logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -455,8 +455,8 @@ void close_logger(void) { 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 @@ extern void ast_verbose(const char *fmt, ...) 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); |