diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-08-30 07:59:01 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-08-30 08:06:10 +0000 |
commit | 0aaa0afa49a2953b7c26c1596a284621e23d5fc4 (patch) | |
tree | 8505c3d7e9cdf516739e2bc51648b1219e8beb38 /lib/unicorn/launcher.rb | |
parent | f3e1653b900596e054297675becd01d9985ad482 (diff) | |
download | unicorn-0aaa0afa49a2953b7c26c1596a284621e23d5fc4.tar.gz |
These nasty hacks were breaking Rubinius compatibility. This can be further cleaned up, too.
Diffstat (limited to 'lib/unicorn/launcher.rb')
-rw-r--r-- | lib/unicorn/launcher.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/unicorn/launcher.rb b/lib/unicorn/launcher.rb index 0d415dd..662b603 100644 --- a/lib/unicorn/launcher.rb +++ b/lib/unicorn/launcher.rb @@ -20,6 +20,7 @@ module Unicorn::Launcher # to pickup code changes if the original deployment directory # is a symlink or otherwise got replaced. def self.daemonize!(options) + cfg = Unicorn::Configurator $stdin.reopen("/dev/null") # We only start a new process group if we're not being reexecuted @@ -52,9 +53,9 @@ module Unicorn::Launcher end end # $stderr/$stderr can/will be redirected separately in the Unicorn config - Unicorn::Configurator::DEFAULTS[:stderr_path] ||= "/dev/null" - Unicorn::Configurator::DEFAULTS[:stdout_path] ||= "/dev/null" - Unicorn::Configurator::RACKUP[:daemonized] = true + cfg::DEFAULTS[:stderr_path] ||= "/dev/null" + cfg::DEFAULTS[:stdout_path] ||= "/dev/null" + cfg::RACKUP[:daemonized] = true end end |