lib/zeus/server/acceptor.rb in zeus-0.2.6 vs lib/zeus/server/acceptor.rb in zeus-0.3.0

- old
+ new

@@ -34,10 +34,17 @@ $stdout.reopen(terminal) $stderr.reopen(terminal) ARGV.replace(arguments) @action.call + ensure + dnw, dnr = File.open("/dev/null", "w+"), File.open("/dev/null", "r+") + $stdin.reopen(dnw) + $stdout.reopen(dnr) + $stderr.reopen(dnr) + terminal.close + exit 0 end private def register_with_client_handler(pid) @@ -68,11 +75,11 @@ ActiveRecord::Base.clear_all_connections! rescue nil end def postfork_action! # TODO :refactor ActiveRecord::Base.establish_connection rescue nil - ActiveSupport::DescendantsTracker.clear rescue nil - ActiveSupport::Dependencies.clear rescue nil + # ActiveSupport::DescendantsTracker.clear rescue nil + # ActiveSupport::Dependencies.clear rescue nil end end end end