[asterisk-commits] russell: branch russell/jack r95440 - /team/russell/jack/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Dec 31 12:29:53 CST 2007
Author: russell
Date: Mon Dec 31 12:29:52 2007
New Revision: 95440
URL: http://svn.digium.com/view/asterisk?view=rev&rev=95440
Log:
commit a hack that ignores a locking error that i get on my mac ...
Modified:
team/russell/jack/main/channel.c
Modified: team/russell/jack/main/channel.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/main/channel.c?view=diff&rev=95440&r1=95439&r2=95440
==============================================================================
--- team/russell/jack/main/channel.c (original)
+++ team/russell/jack/main/channel.c Mon Dec 31 12:29:52 2007
@@ -463,10 +463,7 @@
struct chanlist *chanls;
const struct ast_channel_tech *ret = NULL;
- if (AST_RWLIST_RDLOCK(&channels)) {
- ast_log(LOG_WARNING, "Unable to lock channel tech list\n");
- return NULL;
- }
+ AST_RWLIST_RDLOCK(&channels);
AST_LIST_TRAVERSE(&backends, chanls, list) {
if (!strcasecmp(name, chanls->tech->type)) {
@@ -3168,10 +3165,7 @@
cause = &foo;
*cause = AST_CAUSE_NOTDEFINED;
- if (AST_RWLIST_RDLOCK(&channels)) {
- ast_log(LOG_WARNING, "Unable to lock channel list\n");
- return NULL;
- }
+ AST_RWLIST_RDLOCK(&channels);
AST_LIST_TRAVERSE(&backends, chan, list) {
if (strcasecmp(type, chan->tech->type))
More information about the asterisk-commits
mailing list