From: Eric Wong Date: 2011-07-21T07:51:53+09:00 Subject: [ruby-core:38280] Re: [Ruby 1.9 - Feature #5041][Open] Set FD_CLOEXEC for all fds (except 0, 1, 2) Akira Tanaka wrote: > I'd like to set FD_CLOEXEC for all file descriptors (except 0, 1, 2, > i.e. standard input/output/error). > > I talked this issue with kosaki and matz at RubyKaigi 2011 and > matz said "do it" and see that someone will cry or not. I support this proposal for Ruby 2.0. Very few applications depend on FD passing via exec() and they can easily be updated to set close_on_exec=false. I've just updated git://bogomips.org/unicorn.git myself.