summaryrefslogtreecommitdiffstats
path: root/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sockets.c b/sockets.c
index 5cb833f..0c6173f 100644
--- a/sockets.c
+++ b/sockets.c
@@ -415,6 +415,9 @@ ReadExactTimeout(rfbClientPtr cl, char* buf, int len, int timeout)
#ifdef WIN32
errno = WSAGetLastError();
#endif
+ if (errno == EINTR)
+ continue;
+
if (errno != EWOULDBLOCK && errno != EAGAIN) {
return n;
}
@@ -478,6 +481,9 @@ WriteExact(cl, buf, len)
#ifdef WIN32
errno = WSAGetLastError();
#endif
+ if (errno == EINTR)
+ continue;
+
if (errno != EWOULDBLOCK && errno != EAGAIN) {
UNLOCK(cl->outputMutex);
return n;
OpenPOWER on IntegriCloud