aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hswg/main.go2
1 files changed, 1 insertions, 1 deletions
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 {