about summary refs log tree commit homepage
path: root/lib/unicorn
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 /lib/unicorn
parent7ca92025ececb4b71ec4420e03d5725f13c39cc4 (diff)
downloadunicorn-72dee9e4a8234af762b058a38132268d202c17bf.tar.gz
This is for compatibility with Ruby implementations such as
Rubinius that use "IO.new" internally inside "IO.open"
Diffstat (limited to 'lib/unicorn')
-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