about summary refs log tree commit homepage
path: root/lib/unicorn/tmpio.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicorn/tmpio.rb')
-rw-r--r--lib/unicorn/tmpio.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/unicorn/tmpio.rb b/lib/unicorn/tmpio.rb
index 2da05a2..dcdf9da 100644
--- a/lib/unicorn/tmpio.rb
+++ b/lib/unicorn/tmpio.rb
@@ -26,4 +26,7 @@ class Unicorn::TmpIO < File
   def size
     stat.size
   end unless File.method_defined?(:size)
+
+  # pretend we're Tempfile for Rack::TempfileReaper
+  alias close! close
 end