Commit e028c620 authored by jf+nz's avatar jf+nz Committed by Jonathan Fuerth and Nader Ziada

Added stack dumping signal handlers for integration tests

parent 542cba44
trap 'QUIT' do
threads = Thread.list
PID = Process.pid
STDERR.puts "#{PID}: Dumping stack traces for #{threads.size} threads:"
threads.each do |thread|
STDERR.puts "#{PID}: Thread-#{thread.object_id.to_s(36)}"
STDERR.puts thread.backtrace.join("\n#{PID}: ")
end
end
puts "Installed SIGQUIT stack trace handler on PID #{Process.pid}"
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