pkg/signal
Cezar Sa Espinola b991777f2e Ensure goroutines dump is not truncated
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>
2015-09-04 14:50:37 -03:00
..
README.md #11585: README for pkg/signal. Signed-off-by: Vladimir Roudakov <v_roudakov@yahoo.com> 2015-03-26 21:18:27 +10:00
signal.go Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
signal_darwin.go Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
signal_freebsd.go Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
signal_linux.go Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
signal_unix.go Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
signal_unsupported.go Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
signal_windows.go Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
trap.go Ensure goroutines dump is not truncated 2015-09-04 14:50:37 -03:00

This package provides helper functions for dealing with signals across various operating systems