From 810ca7d5b0aca3c031af36512e1addf36a4b939a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 12 Apr 2009 23:09:27 -0700 Subject: Remove unnecessary sync assignment We never write to the file anyways, and fchmod is never buffered --- lib/unicorn.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 6313f16..9a87e50 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -392,7 +392,6 @@ module Unicorn end 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) @before_fork.call(self, worker.nr) pid = fork { worker_loop(worker) } -- cgit v1.2.3-24-ge0c7