From 72dee9e4a8234af762b058a38132268d202c17bf Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 5 Oct 2010 19:20:39 +0000 Subject: tmpio: use super instead of an explicit method This is for compatibility with Ruby implementations such as Rubinius that use "IO.new" internally inside "IO.open" --- lib/unicorn/tmpio.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7