Skip to content

Instantly share code, notes, and snippets.

@nickbrowne
Last active February 8, 2016 05:07
Show Gist options
  • Save nickbrowne/c7483d420923615302d5 to your computer and use it in GitHub Desktop.
Save nickbrowne/c7483d420923615302d5 to your computer and use it in GitHub Desktop.
trap(:USR2) {
  Thread.list.each do |t|
    puts "#" * 90
    p t
    puts t.backtrace
    puts "#" * 90
  end
}

kill -s SIGUSR2 pid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment