esound r500 - trunk
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: esound r500 - trunk
- Date: Wed, 30 Jul 2008 21:09:17 +0000 (UTC)
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]