Make all signal.Notify channels buffered

This commit is contained in:
greatroar 2020-03-12 19:55:46 +01:00
parent c542a509f0
commit 47d4d5bf1b
4 changed files with 5 additions and 6 deletions

View file

@ -20,7 +20,7 @@ var cleanupHandlers struct {
var stderr = os.Stderr
func init() {
cleanupHandlers.ch = make(chan os.Signal)
cleanupHandlers.ch = make(chan os.Signal, 1)
go CleanupHandler(cleanupHandlers.ch)
signal.Notify(cleanupHandlers.ch, syscall.SIGINT)
}