From 22e386185139ffa37ce531b5ad211cecbc6ad735 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 16 Mar 2022 12:32:54 +0100 Subject: hswg: use a buffered channel for signals Found by go vet. --- hswg/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hswg/main.go b/hswg/main.go index 65557c5..313d2ff 100644 --- a/hswg/main.go +++ b/hswg/main.go @@ -494,7 +494,7 @@ func main() { log.Fatalln(err) } - signals := make(chan os.Signal) + signals := make(chan os.Signal, 1) signal.Notify(signals, syscall.SIGINT, syscall.SIGHUP, syscall.SIGTERM) for { select { -- cgit v1.2.3-70-g09d2