From bcab5ca9d1b50cc940d3c2cf190c6ef18a20f3d0 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 16 Apr 1999 06:03:36 +0000 Subject: prepare to alpha git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ext/socket') diff --git a/ext/socket/socket.c b/ext/socket/socket.c index c630a4b77d..197c8e79e8 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -535,14 +535,12 @@ thread_connect(fd, sockaddr, len, type) } if (status < 0) { switch (errno) { -#ifdef EINPROGRESS - case EINPROGRESS: #ifdef EAGAIN case EAGAIN: +#ifdef EINPROGRESS + case EINPROGRESS: #endif - FD_ZERO(&fds); - FD_SET(fd, &fds); - rb_thread_select(fd+1, 0, &fds, 0, 0); + rb_thread_fd_writable(fd); continue; #endif -- cgit v1.2.3