[Asterisk-cvs] asterisk/apps app_queue.c,1.44,1.45

martinp at lists.digium.com martinp at lists.digium.com
Wed Feb 4 13:33:37 CST 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv759/apps

Modified Files:
	app_queue.c 
Log Message:
Fix the deadlock in show queue <queue_name>


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- app_queue.c	3 Feb 2004 17:54:07 -0000	1.44
+++ app_queue.c	4 Feb 2004 19:42:18 -0000	1.45
@@ -1370,8 +1370,8 @@
 		ast_mutex_lock(&q->lock);
 		if (queue_show) {
 			if (strcasecmp(q->name, argv[2]) != 0) {
-				q = q->next;
 				ast_mutex_unlock(&q->lock);
+				q = q->next;
 				if (!q) {
 					ast_cli(fd, "No such queue: %s.\n",argv[2]);
 					break;




More information about the svn-commits mailing list