summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2003-08-08 08:12:50 +0000
committerdscho <dscho>2003-08-08 08:12:50 +0000
commit98c888cd6b32e34ed82696e4ced13c9bdf278695 (patch)
treeb279a473f8c9f05e1f894765e1f14350d0d26021
parent4fcb60871bb33d48e68bbd8f40a84aa4cfa2c805 (diff)
downloadlibtdevnc-98c888cd6b32e34ed82696e4ced13c9bdf278695.tar.gz
libtdevnc-98c888cd6b32e34ed82696e4ced13c9bdf278695.zip
handle EINTR after select()
-rw-r--r--httpd.c3
-rw-r--r--sockets.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/httpd.c b/httpd.c
index bae63c5..7a0574e 100644
--- a/httpd.c
+++ b/httpd.c
@@ -143,7 +143,8 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen)
#ifdef WIN32
errno = WSAGetLastError();
#endif
- rfbLogPerror("httpCheckFds: select");
+ if (errno != EINTR)
+ rfbLogPerror("httpCheckFds: select");
return;
}
diff --git a/sockets.c b/sockets.c
index a785904..a13fcf6 100644
--- a/sockets.c
+++ b/sockets.c
@@ -218,7 +218,8 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
#ifdef WIN32
errno = WSAGetLastError();
#endif
- rfbLogPerror("rfbCheckFds: select");
+ if (errno != EINTR)
+ rfbLogPerror("rfbCheckFds: select");
return;
}