From 39bdfa57791248e6dd72aa20c9a539c7ff5d4ccb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 20 Feb 2009 11:08:52 -0800 Subject: Ignore ENV['PWD'] in default start context This variable is not guaranteed to be updated outside of an interactive POSIX-ish shell. --- lib/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/unicorn.rb b/lib/unicorn.rb index f53623e..7a2eda2 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -26,7 +26,7 @@ module Unicorn DEFAULT_START_CTX = { :argv => ARGV.map { |arg| arg.dup }, - :cwd => (ENV['PWD'] || Dir.pwd), + :cwd => Dir.pwd, :zero => $0.dup, :environ => {}.merge!(ENV), :umask => File.umask, -- cgit v1.2.3-24-ge0c7