hswg: use a buffered channel for signals

Found by go vet.
This commit is contained in:
Přemysl Eric Janouch 2022-03-16 12:32:54 +01:00
parent 9603456cd6
commit 22e3861851
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -494,7 +494,7 @@ func main() {
log.Fatalln(err) log.Fatalln(err)
} }
signals := make(chan os.Signal) signals := make(chan os.Signal, 1)
signal.Notify(signals, syscall.SIGINT, syscall.SIGHUP, syscall.SIGTERM) signal.Notify(signals, syscall.SIGINT, syscall.SIGHUP, syscall.SIGTERM)
for { for {
select { select {