[asterisk-commits] russell: branch 1.4 r96020 - /branches/1.4/apps/app_macro.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 2 16:00:21 CST 2008


Author: russell
Date: Wed Jan  2 16:00:21 2008
New Revision: 96020

URL: http://svn.digium.com/view/asterisk?view=rev&rev=96020
Log:
app_macro only needs a rdlock on the contexts list.

Modified:
    branches/1.4/apps/app_macro.c

Modified: branches/1.4/apps/app_macro.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_macro.c?view=diff&rev=96020&r1=96019&r2=96020
==============================================================================
--- branches/1.4/apps/app_macro.c (original)
+++ branches/1.4/apps/app_macro.c Wed Jan  2 16:00:21 2008
@@ -281,7 +281,7 @@
 		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)) {




More information about the asterisk-commits mailing list