esound r500 - trunk



Author: fejj
Date: Wed Jul 30 21:09:17 2008
New Revision: 500
URL: http://svn.gnome.org/viewvc/esound?rev=500&view=rev

Log:
misunderstood NetBSD note about POLLHUP

Modified:
   trunk/esdlib.c

Modified: trunk/esdlib.c
==============================================================================
--- trunk/esdlib.c	(original)
+++ trunk/esdlib.c	Wed Jul 30 21:09:17 2008
@@ -140,10 +140,7 @@
 			rv = poll (pfd, 1, 100);
 		} while (rv == -1 && (errno == EINTR || errno == EAGAIN));
 		
-		/* Note: If the remote end of a socket is closed,
-		 * NetBSD will use POLLIN rather than POLLHUP if
-		 * POLLOUT was requested. */
-		if (rv < 1 || (pfd[0].revents & (POLLERR | POLLHUP | POLLIN | POLLOUT)) != POLLOUT) {
+		if (rv < 1 || (pfd[0].revents & (POLLERR | POLLHUP | POLLOUT)) != POLLOUT) {
 			fcntl (fd, F_SETFL, flags);
 			errno = ETIMEDOUT;
 			return -1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]