diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-02 22:00:21 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-02 22:00:21 +0000 |
commit | 6597d34a9e35252f1187ac80c94eed55ff9f628c (patch) | |
tree | d27c55bc88c2e606ead33af89d63d92a86f66115 /apps | |
parent | 9e917c6059f695c815553d2dbdbb3e1781b32abd (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')
-rw-r--r-- | apps/app_macro.c | 2 |
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)) { |