From baab2fc0600c284bf5108a9d9b02b774174ded5d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 5 Feb 2015 17:31:42 +0000 Subject: favor IO#close_on_exec= over fcntl in 1.9+ IO#close_on_exec* methods are available since Ruby 1.9.1. It allows us to use less bytecode as it requires fewer operands and avoids constant lookups. --- lib/unicorn/util.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/unicorn/util.rb') diff --git a/lib/unicorn/util.rb b/lib/unicorn/util.rb index 94c4e37..c7784bd 100644 --- a/lib/unicorn/util.rb +++ b/lib/unicorn/util.rb @@ -1,5 +1,6 @@ # -*- encoding: binary -*- +require 'fcntl' module Unicorn::Util # :stopdoc: -- cgit v1.2.3-24-ge0c7