Skip to content

Instantly share code, notes, and snippets.

@nicksieger
Created August 29, 2012 14:38
Show Gist options
  • Save nicksieger/3513519 to your computer and use it in GitHub Desktop.
Save nicksieger/3513519 to your computer and use it in GitHub Desktop.
kill -QUIT thread dump in Ruby. Seems like I need this and forget exactly how to do it.
trap("QUIT") do
Thread.list.each do |t|
$stderr.puts
$stderr.puts t.inspect
$stderr.puts t.backtrace.join("\n ")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment