From fc7c85fc446d4c3e33ea1694426a574c7c695566 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 Sep 2021 23:39:23 +0000 Subject: drop unnecessary IO#close_on_exec=true assignment Ruby 2.0+ sets FD_CLOEXEC by default on all FDs. --- lib/unicorn.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/unicorn.rb b/lib/unicorn.rb index d5991fe..1a50631 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -114,8 +114,6 @@ module Unicorn def self.pipe # :nodoc: Kgio::Pipe.new.each do |io| - io.close_on_exec = true # remove this when we only support Ruby >= 2.0 - # shrink pipes to minimize impact on /proc/sys/fs/pipe-user-pages-soft # limits. if defined?(F_SETPIPE_SZ) -- cgit v1.2.3-24-ge0c7