about summary refs log tree commit homepage
path: root/lib/rainbows/revactor.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-27 18:26:08 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-27 18:26:08 -0800
commit5221350c4c1e9a431fc06f14d3d8a695f8085ce5 (patch)
treeb7156f849b1c560efd00cabe9bf5868a54548277 /lib/rainbows/revactor.rb
parente537f067c589c4e0b206878a42169c743d3e3ff2 (diff)
downloadrainbows-5221350c4c1e9a431fc06f14d3d8a695f8085ce5.tar.gz
No point in having extra code around for platforms we
don't care about.
Diffstat (limited to 'lib/rainbows/revactor.rb')
-rw-r--r--lib/rainbows/revactor.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb
index 5c813ff..ab65184 100644
--- a/lib/rainbows/revactor.rb
+++ b/lib/rainbows/revactor.rb
@@ -31,8 +31,7 @@ module Rainbows
     # in 3 easy steps: read request, call app, write app response
     def process_client(client)
       io = client.instance_variable_get(:@_io)
-      defined?(Fcntl::FD_CLOEXEC) and
-        io.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
+      io.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
       rd_args = [ nil ]
       remote_addr = if ::Revactor::TCP::Socket === client
         rd_args << RD_ARGS