* [PATCH 2/1] fix Ruby 1.8 detection for (possible) green thread fix
[not found] ` <20091222005421.GA23044-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
@ 2009-12-22 20:50 7% ` Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2009-12-22 20:50 UTC (permalink / raw)
To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw
Thanks to Ben Sandofsky for the extra set of eyes
---
The patch yesterday was bogus and needs this, also pushed out to
rainbows.git of course.
lib/rainbows/base.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb
index 4a4d076..20c7681 100644
--- a/lib/rainbows/base.rb
+++ b/lib/rainbows/base.rb
@@ -15,7 +15,7 @@ module Rainbows
G.tmp = worker.tmp
# avoid spurious wakeups and blocking-accept() with 1.8 green threads
- if RUBY_VERSION.to_f < 1.8
+ if RUBY_VERSION.to_f < 1.9
require "io/nonblock"
LISTENERS.each { |l| l.nonblock = true }
end
--
Eric Wong
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-12-21 22:10 possible ThreadSpawn + Ruby 1.8 issues Eric Wong
2009-12-22 0:54 ` [PATCH] possible MRI 1.8 thread fix to avoid blocking accept() Eric Wong
[not found] ` <20091222005421.GA23044-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-12-22 20:50 7% ` [PATCH 2/1] fix Ruby 1.8 detection for (possible) green thread fix Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/rainbows.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).