about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/unicorn.rb7
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