mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
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
This commit is contained in:
@@ -281,7 +281,7 @@ static int _macro_exec(struct ast_channel *chan, void *data, int exclusive)
|
|||||||
runningdata[0] = '\0';
|
runningdata[0] = '\0';
|
||||||
|
|
||||||
/* What application will execute? */
|
/* What application will execute? */
|
||||||
if (ast_lock_contexts()) {
|
if (ast_rdlock_contexts()) {
|
||||||
ast_log(LOG_WARNING, "Failed to lock contexts list\n");
|
ast_log(LOG_WARNING, "Failed to lock contexts list\n");
|
||||||
} else {
|
} else {
|
||||||
for (c = ast_walk_contexts(NULL), e = NULL; c; c = ast_walk_contexts(c)) {
|
for (c = ast_walk_contexts(NULL), e = NULL; c; c = ast_walk_contexts(c)) {
|
||||||
|
Reference in New Issue
Block a user