summaryrefslogtreecommitdiffstats
path: root/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sockets.c b/sockets.c
index 9086326..cea1898 100644
--- a/sockets.c
+++ b/sockets.c
@@ -499,7 +499,9 @@ WriteExact(cl, buf, len)
tv.tv_sec = 5;
tv.tv_usec = 0;
n = select(sock+1, NULL, &fds, NULL /* &fds */, &tv);
- if (n < 0) {
+ if (n < 0) {
+ if(errno==EINTR)
+ continue;
rfbLogPerror("WriteExact: select");
UNLOCK(cl->outputMutex);
return n;