about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-08-11 17:28:47 -0700
committerEric Wong <normalperson@yhbt.net>2011-08-11 17:28:47 -0700
commitb1f328b0dd3647168fcc8b1ad9b09284707ad929 (patch)
treef9bf2fe41a0ec7d18e7279f76eba934b30f0a80a
parent6ab27beeda3b0aaaa66f7cc4f734944a7aa84385 (diff)
downloadunicorn-b1f328b0dd3647168fcc8b1ad9b09284707ad929.tar.gz
We only need the fileno in the key which we use
to generate the UNICORN_FD env.  Otherwise the IO
object is accepted and understood by Ruby.
-rw-r--r--lib/unicorn/http_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb
index 3d23d12..aa8212e 100644
--- a/lib/unicorn/http_server.rb
+++ b/lib/unicorn/http_server.rb
@@ -413,7 +413,7 @@ class Unicorn::HttpServer
         # Ruby that sets FD_CLOEXEC by default on new file descriptors
         # ref: http://redmine.ruby-lang.org/issues/5041
         sock.close_on_exec = false if sock.respond_to?(:close_on_exec=)
-        [ sock.fileno, sock.fileno ]
+        [ sock.fileno, sock ]
       end]
       ENV['UNICORN_FD'] = listener_fds.keys.join(',')
       Dir.chdir(START_CTX[:cwd])