From 4ee745734319ad4bfaa008fede233ba8288ca719 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 2 Jan 2008 22:00:21 +0000 Subject: [PATCH] app_macro only needs a rdlock on the contexts list. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96020 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_macro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_macro.c b/apps/app_macro.c index cf47df0246..7906ed4b2a 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)) {