hswg: use a buffered channel for signals
Found by go vet.
This commit is contained in:
parent
9603456cd6
commit
22e3861851
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue