summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/nkf/MANIFEST2
-rw-r--r--ext/socket/socket.c8
2 files changed, 4 insertions, 6 deletions
diff --git a/ext/nkf/MANIFEST b/ext/nkf/MANIFEST
index 5e01e6e237..5114a3762a 100644
--- a/ext/nkf/MANIFEST
+++ b/ext/nkf/MANIFEST
@@ -3,5 +3,5 @@ depend
extconf.rb
lib/kconv.rb
nkf.c
-1.7/nkf.c
+nkf1.7/nkf.c
test.rb
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