Created
August 29, 2012 14:38
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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