about summary refs log tree commit homepage
path: root/lib/unicorn/http_request.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-02 19:27:44 -0800
committerEric Wong <normalperson@yhbt.net>2009-03-03 11:14:59 -0800
commit40fadd79cee6a26fc124ad42297754b88d5c59e5 (patch)
tree3295854c96266b7a24cb5d64a59ce52071121e13 /lib/unicorn/http_request.rb
parent56aaf96ffccebf70bf98f41c64bf533cef68f802 (diff)
downloadunicorn-40fadd79cee6a26fc124ad42297754b88d5c59e5.tar.gz
As opposed to doing this in the shell, this allows the files to
be reopened reliably after rotation.

While we're at it, use $stderr/$stdout instead of STDERR/STDOUT
since they seem to be more favored.
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r--lib/unicorn/http_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 9571754..6e909b6 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -133,7 +133,7 @@ module Unicorn
       @params.delete "HTTP_CONTENT_LENGTH"
       @params.update({ "rack.version" => [0,1],
                       "rack.input" => @body,
-                      "rack.errors" => STDERR,
+                      "rack.errors" => $stderr,
                       "rack.multithread" => false,
                       "rack.multiprocess" => true,
                       "rack.run_once" => false,