From: Brian Brazil Date: Wed, 14 Nov 2018 18:00:11 +0000 (+0000) Subject: Signal channel should have a buffer of 1. (#381) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b0006534ae908950217672a757a2a49f39b3fd8e;p=blackbox_exporter.git Signal channel should have a buffer of 1. (#381) Signed-off-by: Brian Brazil --- 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() {