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
1 changed files with 1 additions and 1 deletions

View File

@ -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 {