Commit 85382cc7 authored by Chris Walters's avatar Chris Walters
Browse files

Printing call stack on SIGQUIT

parent b1b8a97d
......@@ -35,16 +35,16 @@ class Chef::Application
end
unless RUBY_PLATFORM =~ /mswin|mingw32|windows/
trap("QUIT") do
Chef::Log.info("SIGQUIT received, call stack:\n " + caller.join("\n "))
end
trap("HUP") do
Chef::Log.info("SIGHUP received, reconfiguring")
reconfigure
end
end
at_exit do
# tear down the logger
end
# Always switch to a readable directory. Keeps subsequent Dir.chdir() {}
# from failing due to permissions when launched as a less privileged user.
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment