[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>

All, I needed a nonblocking socket connect for my asynchronous-event

18 messages 2006/05/14
[#7873] Re: Nonblocking socket-connect — Tanaka Akira <akr@...17n.org> 2006/05/14

In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,

[#7874] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

How about introducing the method Socket#set_nonblocking, or alternatively

[#7875] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

[#7876] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

Well, it's ok then. I'm comfortable adding in the nonblocking

[#7877] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

loading rubygems at startup without RUBYOPT

From: "Nobuyoshi Nakada" <nobu@...>
Date: 2006-05-26 05:48:55 UTC
List: ruby-core #7922
Hi,

By linking following extension library statically, rubygems.rb will be
loaded even if no -rubygems option is in RUBYOPT nor command line.

	#define RUBY_EXPORT 1
	#include "ruby.h"
	void Init_rubygems(void)
	{
	#ifdef IGNORE_NONEXISTENT
	    static const char so[] = "rubygems.so";
	#endif
	    rb_provide(so);
	#ifdef IGNORE_NONEXISTENT
	    rb_require("rubygems");
	    rb_ary_delete(rb_gv_get("$\""), rb_str_new2(so));
	#endif
	}

and `make EXTSTATIC=rubygems' if you put the above under ext/rubygems directory.

Just my 2JPY.

-- 
Nobu Nakada


In This Thread

Prev Next