diff options
author | dscho <dscho> | 2002-02-18 07:42:28 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-02-18 07:42:28 +0000 |
commit | 9ec36a65b572f6ee8f28284e4a37d19b9ceeb379 (patch) | |
tree | 8c0c3b888fbfda2392609da074e9cf881d3a12c7 /sockets.c | |
parent | 45a4b4a2235adecc925182b27959db62b5954a26 (diff) | |
download | libtdevnc-9ec36a65b572f6ee8f28284e4a37d19b9ceeb379.tar.gz libtdevnc-9ec36a65b572f6ee8f28284e4a37d19b9ceeb379.zip |
select exceptfds
Diffstat (limited to 'sockets.c')
-rw-r--r-- | sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -188,7 +188,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec) memcpy((char *)&fds, (char *)&(rfbScreen->allFds), sizeof(fd_set)); tv.tv_sec = 0; tv.tv_usec = usec; - nfds = select(rfbScreen->maxFd + 1, &fds, NULL, NULL, &tv); + nfds = select(rfbScreen->maxFd + 1, &fds, NULL, &fds, &tv); if (nfds == 0) { return; } @@ -451,7 +451,7 @@ WriteExact(cl, buf, len) FD_SET(sock, &fds); tv.tv_sec = 5; tv.tv_usec = 0; - n = select(sock+1, NULL, &fds, NULL, &tv); + n = select(sock+1, NULL, &fds, &fds, &tv); if (n < 0) { rfbLogPerror("WriteExact: select"); UNLOCK(cl->outputMutex); |