diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-09-18 04:48:51 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-09-18 04:48:51 +0000 |
commit | 7152df6b9b3b95d93607127d853c02e03e42a327 (patch) | |
tree | 988114e2435a507f4b00c7bd568adeed7c587243 /win32 | |
parent | 12494013d2dc8597924e30581fbf55feeb3290a4 (diff) |
990918-repack
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index fd70242e9e..beb9545af1 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1828,8 +1828,17 @@ myselect (int nfds, fd_set *rd, fd_set *wr, fd_set *ex, if (!NtSocketsInitialized++) { StartSockets(); } - if ((r = select (nfds, rd, wr, ex, timeout)) == SOCKET_ERROR) + if ((r = select (nfds, rd, wr, ex, timeout)) == SOCKET_ERROR) { errno = WSAGetLastError(); + switch (errno) { + case WSAEINTR: + errno = EINTR; + break; + case WSAENOTSOCK: + errno = EBADF; + break; + } + } return r; } |