Make a go program print a stacktrace of all goroutines on SIGUSR1
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
CHANGELOG.md
LICENSE.txt
README.md
stacksignal.go

README.md

stacksignal registers a signal handler for SIGUSR1. Whenever the importing program receives SIGUSR1, a full stacktrace of all goroutines will be printed to stderr.

Since there are no functions to use, the import line should be:

import _ "github.com/surma/stacksignal"

Version 1.1.1