diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-09 21:50:43 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-09 23:08:17 -0800 |
commit | 61d8e20732030c9a43ea266373bc778413e49b47 (patch) | |
tree | cbd2daac32964461ba22e8d60b151bcb79b99d91 | |
parent | c91853669716f40175562b77e540a396d2e79799 (diff) | |
download | unicorn-61d8e20732030c9a43ea266373bc778413e49b47.tar.gz |
These files are unlinked immediately anyways, so it's wasteful to give them a long name...
-rw-r--r-- | lib/unicorn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index a33b1b2..0c3419b 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -331,7 +331,7 @@ module Unicorn return if @workers.size == @nr_workers (0...@nr_workers).each do |worker_nr| @workers.values.include?(worker_nr) and next - tempfile = Tempfile.new('unicorn_worker') + tempfile = Tempfile.new('') # as short as possible to save dir space tempfile.unlink # don't allow other processes to find or see it tempfile.sync = true worker = Worker.new(worker_nr, tempfile) |