diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-08-11 17:28:47 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-08-11 17:28:47 -0700 |
commit | b1f328b0dd3647168fcc8b1ad9b09284707ad929 (patch) | |
tree | f9bf2fe41a0ec7d18e7279f76eba934b30f0a80a /lib/unicorn | |
parent | 6ab27beeda3b0aaaa66f7cc4f734944a7aa84385 (diff) | |
download | unicorn-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.
Diffstat (limited to 'lib/unicorn')
-rw-r--r-- | lib/unicorn/http_server.rb | 2 |
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]) |