handle EINTR after select()

pull/1/head
dscho 21 years ago
parent 4fcb60871b
commit 98c888cd6b

@ -143,7 +143,8 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen)
#ifdef WIN32 #ifdef WIN32
errno = WSAGetLastError(); errno = WSAGetLastError();
#endif #endif
rfbLogPerror("httpCheckFds: select"); if (errno != EINTR)
rfbLogPerror("httpCheckFds: select");
return; return;
} }

@ -218,7 +218,8 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
#ifdef WIN32 #ifdef WIN32
errno = WSAGetLastError(); errno = WSAGetLastError();
#endif #endif
rfbLogPerror("rfbCheckFds: select"); if (errno != EINTR)
rfbLogPerror("rfbCheckFds: select");
return; return;
} }

Loading…
Cancel
Save