[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

Re: ping.rb

From: nobu.nokada@...
Date: 2003-05-15 05:24:16 UTC
List: ruby-core #1044
Hi,

At Thu, 15 May 2003 13:06:15 +0900,
Dave Thomas wrote:
> Here's the appropriate section of the ktrace:
> 
> ktrace ruby -r socket -e "TCPSocket.new('localhost', 'echo')"
> 
>   15037 ruby     CALL  socket(0x1e,0x1,0x6)
>   15037 ruby     RET   socket 11/0xb
>   15037 ruby     CALL  fcntl(0xb,0x3,0)
>   15037 ruby     RET   fcntl 2
>   15037 ruby     CALL  fcntl(0xb,0x4,0x6)
>   15037 ruby     RET   fcntl 0
>   15037 ruby     CALL  connect(0xb,0x222960,0x1c)
>   15037 ruby     RET   connect -1 errno 36 Operation now in progress
>   15037 ruby     CALL  select(0xc,0,0xbfffd2b0,0,0)
>   15037 ruby     RET   select 1
>   15037 ruby     CALL  connect(0xb,0x222960,0x1c)
>   15037 ruby     RET   connect -1 errno 22 Invalid argument
>   15078 ruby     CALL  connect(0xb,0x2229e0,0x10)

Seems here should be the problem.

You can see 3 `#ifdef __CYGWIN__'s in ruby_connect().  These
code may be needed on Mac OSX.

-- 
Nobu Nakada

In This Thread