[Asterisk-cvs] asterisk/res res_musiconhold.c,1.71,1.72

markster markster
Tue Oct 18 23:57:33 CDT 2005


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

Modified Files:
	res_musiconhold.c 
Log Message:
Fix res_musiconhold lock


Index: res_musiconhold.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_musiconhold.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- res_musiconhold.c	14 Sep 2005 20:46:50 -0000	1.71
+++ res_musiconhold.c	19 Oct 2005 03:51:25 -0000	1.72
@@ -1066,7 +1066,7 @@
 			pid = moh->pid;
 			moh->pid = 0;
 			kill(pid, SIGKILL);
-			while ((ast_wait_for_input(moh->srcfd, 100) > -1) && (bytes = read(moh->srcfd, buff, 8192)) && time(NULL) < stime) {
+			while ((ast_wait_for_input(moh->srcfd, 100) > 0) && (bytes = read(moh->srcfd, buff, 8192)) && time(NULL) < stime) {
 				tbytes = tbytes + bytes;
 			}
 			ast_log(LOG_DEBUG, "mpg123 pid %d and child died after %d bytes read\n", pid, tbytes);




More information about the svn-commits mailing list