From b0006534ae908950217672a757a2a49f39b3fd8e Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Wed, 14 Nov 2018 18:00:11 +0000 Subject: [PATCH] Signal channel should have a buffer of 1. (#381) Signed-off-by: Brian Brazil --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 238ecd4..58779fc 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() { -- 2.25.1