From ff7be87e61f08a5b8e08b306add144cbfde60742 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Wed, 14 Nov 2018 16:18:48 +0000 Subject: [PATCH] Signal channel should have a buffer of 1. Signed-off-by: Brian Brazil --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 238ecd45..58779fc2 100644 --- a/main.go +++ b/main.go @@ -227,7 +227,7 @@ func main() { level.Info(logger).Log("msg", "Loaded config file") - hup := make(chan os.Signal) + hup := make(chan os.Signal, 1) reloadCh := make(chan chan error) signal.Notify(hup, syscall.SIGHUP) go func() {