* ext/socket/socket.c (ruby_connect): workaround for the setup of

Cygwin socket.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2001-06-22 14:44:44 +00:00
Родитель cdabb04b44
Коммит 2cf4fce053
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Fri Jun 22 23:17:28 2001 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/socket/socket.c (ruby_connect): workaround for the setup of
Cygwin socket.
Fri Jun 22 23:11:17 2001 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/locale.rb: fix for require "kconv" problem

Просмотреть файл

@ -743,6 +743,14 @@ ruby_connect(fd, sockaddr, len, socks)
case EAGAIN:
#ifdef EINPROGRESS
case EINPROGRESS:
#if defined __CYGWIN__
{
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = 100000;
rb_thread_wait_for(&tv);
}
#endif
#endif
thread_write_select(fd);
continue;