about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2021-09-14 23:39:23 +0000
committerEric Wong <bofh@yhbt.net>2021-09-26 17:49:37 +0000
commitfc7c85fc446d4c3e33ea1694426a574c7c695566 (patch)
tree433866c76d834a1ef2da2cad1dc416f5470e3de4
parentc56eb04d683ef0ed45badfc505ac7eaeb25c6447 (diff)
downloadunicorn-fc7c85fc446d4c3e33ea1694426a574c7c695566.tar.gz
Ruby 2.0+ sets FD_CLOEXEC by default on all FDs.
-rw-r--r--lib/unicorn.rb2
1 files changed, 0 insertions, 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)