about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-09 21:50:43 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-09 23:08:17 -0800
commit61d8e20732030c9a43ea266373bc778413e49b47 (patch)
treecbd2daac32964461ba22e8d60b151bcb79b99d91 /lib
parentc91853669716f40175562b77e540a396d2e79799 (diff)
downloadunicorn-61d8e20732030c9a43ea266373bc778413e49b47.tar.gz
These files are unlinked immediately anyways, so
it's wasteful to give them a long name...
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn.rb2
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)