[Asterisk-cvs] asterisk/apps app_agi.c,1.24,1.25

markster at lists.digium.com markster at lists.digium.com
Wed Dec 31 18:34:33 CST 2003


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

Modified Files:
	app_agi.c 
Log Message:
Don't close audio[0] if you're not careful


Index: app_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_agi.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- app_agi.c	27 Dec 2003 23:46:19 -0000	1.24
+++ app_agi.c	1 Jan 2004 00:26:11 -0000	1.25
@@ -168,8 +168,10 @@
 	close(toast[1]);
 	close(fromast[0]);
 
-	// [PHM 12/18/03]
-	close(audio[0]);
+	if (efd) {
+		// [PHM 12/18/03]
+		close(audio[0]);
+	}
 
 	*opid = pid;
 	return 0;




More information about the svn-commits mailing list