summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-05 19:20:39 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-05 19:20:39 +0000
commit72dee9e4a8234af762b058a38132268d202c17bf (patch)
treee8d38127cf5c99d27082fc9151ca22d59e70de64
parent7ca92025ececb4b71ec4420e03d5725f13c39cc4 (diff)
This is for compatibility with Ruby implementations such as
Rubinius that use "IO.new" internally inside "IO.open"
-rw-r--r--lib/unicorn/tmpio.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/tmpio.rb b/lib/unicorn/tmpio.rb
index cce89ac..a3c530d 100644
--- a/lib/unicorn/tmpio.rb
+++ b/lib/unicorn/tmpio.rb
@@ -12,7 +12,7 @@ class Unicorn::TmpIO < File
   # buffering is disabled
   def self.new
     fp = begin
-      open("#{Dir::tmpdir}/#{rand}", RDWR|CREAT|EXCL, 0600)
+      super("#{Dir::tmpdir}/#{rand}", RDWR|CREAT|EXCL, 0600)
     rescue Errno::EEXIST
       retry
     end