summaryrefslogtreecommitdiff
path: root/lib/libXt/src/NextEvent.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2012-03-18 11:08:16 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2012-03-18 11:08:16 +0000
commitf8d4b68978f9fcb968c740a907b2f59529de77c3 (patch)
tree8b40114f30edc65b459792099c90c6fa114a83de /lib/libXt/src/NextEvent.c
parent65fd7d06bb363c5b95cca996342e67180faf5c91 (diff)
Update to libXt 1.1.3
Diffstat (limited to 'lib/libXt/src/NextEvent.c')
-rw-r--r--lib/libXt/src/NextEvent.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/libXt/src/NextEvent.c b/lib/libXt/src/NextEvent.c
index c8c9dd526..b1f7bc7e5 100644
--- a/lib/libXt/src/NextEvent.c
+++ b/lib/libXt/src/NextEvent.c
@@ -356,21 +356,7 @@ static int IoWait (
return Select (wf->nfds, &wf->rmask, &wf->wmask, &wf->emask,
wt->wait_time_ptr);
#else
- int ret = poll (wf->fdlist, wf->fdlistlen, wt->poll_wait);
- /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
- * it as if it failed. */
- if(ret >= 0) {
- nfds_t i;
- for (i=0; i < wf->fdlistlen; i++) {
- struct pollfd *fd = &wf->fdlist[i];
- if (fd->revents & ~fd->events) {
- ret = -1;
- errno = EIO;
- break;
- }
- }
- }
- return ret;
+ return poll (wf->fdlist, wf->fdlistlen, wt->poll_wait);
#endif
}