about summary refs log tree commit homepage
path: root/lib/rainbows/base.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-11 08:47:41 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-11 08:48:07 +0000
commit0a3e9cacd7ca2feb91bae23b0c678d5e986f866f (patch)
tree321d8960d0a6711ccefdc12b759cfa890c4d93f2 /lib/rainbows/base.rb
parent37687e027233072582c28bdd1530047a40ef7869 (diff)
downloadrainbows-0a3e9cacd7ca2feb91bae23b0c678d5e986f866f.tar.gz
Rubinius still has a few issues that prevent 100% support,
but it basically works if log rotation or USR2 upgrades aren't
required.  Tickets for all known issues for Rubinius have
been filed on the project's issue tracker.

* rbx does not support -i/-p yet, so rely on MRI for that
* "io/nonblock" is missing
* avoiding any optional Gems for now (EM, Rev, etc..)
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r--lib/rainbows/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb
index 8e5031f..86ec733 100644
--- a/lib/rainbows/base.rb
+++ b/lib/rainbows/base.rb
@@ -16,7 +16,7 @@ module Rainbows
       G.tmp = worker.tmp
 
       # avoid spurious wakeups and blocking-accept() with 1.8 green threads
-      if RUBY_VERSION.to_f < 1.9
+      if ! defined?(RUBY_ENGINE) && RUBY_VERSION.to_f < 1.9
         require "io/nonblock"
         HttpServer::LISTENERS.each { |l| l.nonblock = true }
       end