mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
cdabb04b44
commit
2cf4fce053
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue