b991777f2e
Calling runtime.Stack requires the buffer to be big enough to fit the goroutines dump. If it's not big enough the dump will be truncated and the value returned will be the same size as the buffer. The code was changed to handle this situation and try again with a bigger buffer. Each time the dump doesn't fit in the buffer its size is doubled. Signed-off-by: Cezar Sa Espinola <cezarsa@gmail.com> |
||
---|---|---|
.. | ||
README.md | ||
signal.go | ||
signal_darwin.go | ||
signal_freebsd.go | ||
signal_linux.go | ||
signal_unix.go | ||
signal_unsupported.go | ||
signal_windows.go | ||
trap.go |
This package provides helper functions for dealing with signals across various operating systems