[Asterisk-cvs] asterisk/channels chan_skinny.c,1.36,1.37

markster at lists.digium.com markster at lists.digium.com
Mon Apr 26 08:45:52 CDT 2004


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

Modified Files:
	chan_skinny.c 
Log Message:
Move skinny to support poll


Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- chan_skinny.c	22 Apr 2004 00:20:33 -0000	1.36
+++ chan_skinny.c	26 Apr 2004 12:51:49 -0000	1.37
@@ -2258,13 +2258,12 @@
 {  
  
 	int res;  
-	int dlen = 0;  
- 
-	fd_set fds;  
-	FD_ZERO(&fds);  
-	FD_SET(s->fd, &fds);  
+	int dlen = 0;
+	struct pollfd fds[1];  
  
-	res = ast_select(s->fd + 1, &fds, NULL, NULL, NULL);  
+ 	fds[0].fd = s->fd;
+	fds[0].events = POLLIN;
+	res = poll(fds, 1, -1);
  
 	if (res < 0) {
 		ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));




More information about the svn-commits mailing list