Mercurial > gemma
changeset 3972:72473ebd9d64
Bufferd kill signal channel to not miss signals if recieving code is not ready.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 17 Jul 2019 11:26:36 +0200 |
parents | 4eaa6bca367a |
children | 5f3f571c105c |
files | cmd/gemma/main.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd/gemma/main.go Wed Jul 17 10:47:11 2019 +0200 +++ b/cmd/gemma/main.go Wed Jul 17 11:26:36 2019 +0200 @@ -91,7 +91,7 @@ done <- server.ListenAndServe() }() - sigChan := make(chan os.Signal) + sigChan := make(chan os.Signal, 1) signal.Notify(sigChan, os.Interrupt, os.Kill, syscall.SIGTERM) select {