[Asterisk-cvs] asterisk/res res_monitor.c,1.17,1.18
markster at lists.digium.com
markster at lists.digium.com
Tue Jun 22 11:01:26 CDT 2004
- Previous message: [Asterisk-cvs] asterisk/include/asterisk vmodem.h,1.9,1.10
- Next message: [Asterisk-cvs] asterisk Makefile,1.95,1.96 asterisk.c,1.95,1.96 cli.c,1.42,1.43 manager.c,1.55,1.56 pbx.c,1.127,1.128 sched.c,1.11,1.12 utils.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv20085/res
Modified Files:
res_monitor.c
Log Message:
Fix potential deadlocks in res_monitor
Index: res_monitor.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_monitor.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- res_monitor.c 9 Jun 2004 01:45:08 -0000 1.17
+++ res_monitor.c 22 Jun 2004 14:47:21 -0000 1.18
@@ -386,6 +386,7 @@
if( ast_monitor_start( c, format, fname, 1 ) ) {
if( ast_monitor_change_fname( c, fname, 1 ) ) {
astman_send_error(s, m, "Could not start monitoring channel");
+ ast_mutex_unlock(&c->lock);
return 0;
}
}
@@ -457,8 +458,10 @@
}
if( ast_monitor_change_fname( c, fname, 1 ) ) {
astman_send_error(s, m, "Could not change monitored filename of channel");
+ ast_mutex_unlock(&c->lock);
return 0;
}
+ ast_mutex_unlock(&c->lock);
astman_send_ack(s, m, "Stopped monitoring channel");
return 0;
}
- Previous message: [Asterisk-cvs] asterisk/include/asterisk vmodem.h,1.9,1.10
- Next message: [Asterisk-cvs] asterisk Makefile,1.95,1.96 asterisk.c,1.95,1.96 cli.c,1.42,1.43 manager.c,1.55,1.56 pbx.c,1.127,1.128 sched.c,1.11,1.12 utils.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list