diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-08-11 12:59:09 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-08-11 13:06:59 -0700 |
commit | 6ab27beeda3b0aaaa66f7cc4f734944a7aa84385 (patch) | |
tree | 301813838b8dc926a4f5d927b29010efd4a5170d /lib/unicorn.rb | |
parent | 60d60a6fa716e91651997d86e3cb9cda41475975 (diff) | |
download | unicorn-6ab27beeda3b0aaaa66f7cc4f734944a7aa84385.tar.gz |
Setting the close-on-exec flag by default and closing non-standard descriptors is proposed for Ruby 1.9.4/2.0.0. Since Unicorn is one of the few apps to rely on FD inheritance across exec(), we need to workaround this by redirecting each listener FD to itself for Kernel#exec. Ruby supports a hash as the final argument to Kernel#exec since at least 1.9.1 (nobody cares for 1.9.0 anymore). This allows users to backport close-on-exec by default patches to older 1.9.x installs without breaking anything. ref: http://redmine.ruby-lang.org/issues/5041
Diffstat (limited to 'lib/unicorn.rb')
0 files changed, 0 insertions, 0 deletions