mitchellh / panicwrap

panicwrap is a Go library for catching and handling panics in Go applications.
https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc
MIT License
444 stars 66 forks source link

Improve signal handling #19 #20

Open itizir opened 7 years ago

itizir commented 7 years ago

It is recommended to buffer channels meant to receive system signals, as the signal won't wait for the channel to be ready to receive, and the channel will therefore miss signals if it wasn't ready.

Could add other changes as suggested in issue #19...