lib/new_relic/agent/agent.rb in newrelic_rpm-2.11.2 vs lib/new_relic/agent/agent.rb in newrelic_rpm-2.11.3

- old
+ new

@@ -222,12 +222,13 @@ # Our shutdown handler needs to run after other shutdown handlers # that may be doing things like running the app (hello sinatra). if RUBY_VERSION =~ /rubinius/i list = at_exit { shutdown } - # move the shutdown handler to the front of the list, to execute last: + # move the shutdown handler to the front of the list, to + # execute last: list.unshift(list.pop) - elsif !defined?(JRuby) or !defined(Sinatra::Application) + elsif !defined?(JRuby) or !defined?(Sinatra::Application) at_exit { at_exit { shutdown } } end end end control.log! "New Relic RPM Agent #{NewRelic::VERSION::STRING} Initialized: pid = #$$"