diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-05 19:20:39 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-05 19:20:39 +0000 |
commit | 72dee9e4a8234af762b058a38132268d202c17bf (patch) | |
tree | e8d38127cf5c99d27082fc9151ca22d59e70de64 /lib/unicorn/tmpio.rb | |
parent | 7ca92025ececb4b71ec4420e03d5725f13c39cc4 (diff) | |
download | unicorn-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/tmpio.rb')
-rw-r--r-- | lib/unicorn/tmpio.rb | 2 |
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 |