[Asterisk-cvs] asterisk file.c,1.57,1.58

markster at lists.digium.com markster at lists.digium.com
Tue Mar 22 14:39:32 CST 2005


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

Modified Files:
	file.c 
Log Message:
Ignore interrupted system calls (bug #3831)


Index: file.c
===================================================================
RCS file: /usr/cvsroot/asterisk/file.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- file.c	6 Feb 2005 06:43:32 -0000	1.57
+++ file.c	22 Mar 2005 20:34:04 -0000	1.58
@@ -1081,6 +1081,9 @@
 			ms = 1000;
 		rchan = ast_waitfor_nandfds(&c, 1, &cmdfd, (cmdfd > -1) ? 1 : 0, NULL, &outfd, &ms);
 		if (!rchan && (outfd < 0) && (ms)) {
+			/* Continue */
+			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