From 9a46002fc01b1b874d768b2e8372b725a9e8b298 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 2 Oct 2000 07:48:42 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 49b781f677..9142c4d94a 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1904,7 +1904,6 @@ myselect (int nfds, fd_set *rd, fd_set *wr, fd_set *ex, long r; fd_set file_rd; fd_set file_wr; - fd_set trap; int file_nfds; int trap_immediate = rb_trap_immediate; @@ -1925,16 +1924,9 @@ myselect (int nfds, fd_set *rd, fd_set *wr, fd_set *ex, if (wr) *wr = file_wr; return file_nfds; } - if (ex) - trap = *ex; - else - trap.fd_count = 0; - if (trap.fd_count < FD_SETSIZE) - trap.fd_array[trap.fd_count++] = rb_InterruptEvent; - // else unable to catch interrupt. if (trap_immediate) TRAP_END; - if ((r = select (nfds, rd, wr, &trap, timeout)) == SOCKET_ERROR) { + if ((r = select (nfds, rd, wr, ex, timeout)) == SOCKET_ERROR) { errno = WSAGetLastError(); switch (errno) { case WSAEINTR: -- cgit v1.2.3