[Asterisk-cvs] asterisk channel.c,1.175,1.176

markster at lists.digium.com markster at lists.digium.com
Tue Mar 22 16:50:23 CST 2005


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

Modified Files:
	channel.c 
Log Message:
Make sure that waitfordigit_full doesn't hangup on -EINTR (bug #3831)


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- channel.c	4 Mar 2005 06:47:23 -0000	1.175
+++ channel.c	22 Mar 2005 22:44:55 -0000	1.176
@@ -1173,6 +1173,8 @@
 	while(ms) {
 		rchan = ast_waitfor_nandfds(&c, 1, &cmdfd, (cmdfd > -1) ? 1 : 0, NULL, &outfd, &ms);
 		if ((!rchan) && (outfd < 0) && (ms)) { 
+			if (errno == EINTR)
+				continue;
 			ast_log(LOG_WARNING, "Wait failed (%s)\n", strerror(errno));
 			return -1;
 		} else if (outfd > -1) {




More information about the svn-commits mailing list