diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-17 04:32:08 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-17 04:32:08 +0000 |
commit | 85709c6c86c792a9a8576e83b40a70322c5d6034 (patch) | |
tree | d18c452edc0d448c6e43f679619c5cb470976c01 /lib/unicorn.rb | |
parent | 13dc5b88cde691cc4e105de04ebb7804ae633ae6 (diff) | |
download | unicorn-85709c6c86c792a9a8576e83b40a70322c5d6034.tar.gz |
This is fixed upstream in Rubinius by commit b630ad9ddb4544a62e8e2282ba7dc59c4269bad7
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r-- | lib/unicorn.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 9dcdc29..a7b0646 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -816,12 +816,7 @@ module Unicorn end def redirect_io(io, path) - File.open(path, 'ab') do |fp| - io.reopen(fp) - - # workaround for http://github.com/evanphx/rubinius/issues/360 - io.instance_variable_set(:@path, path) if io.path.nil? - end if path + File.open(path, 'ab') { |fp| io.reopen(fp) } if path io.sync = true end |