aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_macro.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 22:00:21 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 22:00:21 +0000
commit6597d34a9e35252f1187ac80c94eed55ff9f628c (patch)
treed27c55bc88c2e606ead33af89d63d92a86f66115 /apps/app_macro.c
parent9e917c6059f695c815553d2dbdbb3e1781b32abd (diff)
app_macro only needs a rdlock on the contexts list.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96020 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_macro.c')
-rw-r--r--apps/app_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c
index cf47df024..7906ed4b2 100644
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -281,7 +281,7 @@ static int _macro_exec(struct ast_channel *chan, void *data, int exclusive)
runningdata[0] = '\0';
/* What application will execute? */
- if (ast_lock_contexts()) {
+ if (ast_rdlock_contexts()) {
ast_log(LOG_WARNING, "Failed to lock contexts list\n");
} else {
for (c = ast_walk_contexts(NULL), e = NULL; c; c = ast_walk_contexts(c)) {