Commit 98c888cd authored by dscho's avatar dscho

handle EINTR after select()

parent 4fcb6087
...@@ -143,6 +143,7 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen) ...@@ -143,6 +143,7 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen)
#ifdef WIN32 #ifdef WIN32
errno = WSAGetLastError(); errno = WSAGetLastError();
#endif #endif
if (errno != EINTR)
rfbLogPerror("httpCheckFds: select"); rfbLogPerror("httpCheckFds: select");
return; return;
} }
......
...@@ -218,6 +218,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec) ...@@ -218,6 +218,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
#ifdef WIN32 #ifdef WIN32
errno = WSAGetLastError(); errno = WSAGetLastError();
#endif #endif
if (errno != EINTR)
rfbLogPerror("rfbCheckFds: select"); rfbLogPerror("rfbCheckFds: select");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment