favor IO#close_on_exec= over fcntl in 1.9+
commitbaab2fc0600c284bf5108a9d9b02b774174ded5d
authorEric Wong <e@80x24.org>
Thu, 5 Feb 2015 17:31:42 +0000 (5 17:31 +0000)
committerEric Wong <e@80x24.org>
Thu, 5 Feb 2015 17:34:37 +0000 (5 17:34 +0000)
treee57c8d7ea599960b06666469a40283e01200754e
parent682c9ffa365a2cf5439845be6e0e693d352cfe94
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.rb
lib/unicorn/http_server.rb
lib/unicorn/util.rb