summaryrefslogtreecommitdiff
path: root/cmd/tunneld
diff options
context:
space:
mode:
authorMikhail Osipov <mike.osipov@gmail.com>2021-09-22 23:08:13 +0300
committerMikhail Osipov <mike.osipov@gmail.com>2021-09-22 23:08:13 +0300
commitc2d5e17f2995e7d7ab7c4b45943d4c71b024e4ca (patch)
tree5a2c77448bc14d36fa1849fd36979c856d72df5d /cmd/tunneld
parentbb5930cfc1852de96296c3a8b19b1e202e5c504c (diff)
tunneld: signal catch fix
Diffstat (limited to 'cmd/tunneld')
-rw-r--r--cmd/tunneld/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/tunneld/main.go b/cmd/tunneld/main.go
index 7fbc8a5..f773b86 100644
--- a/cmd/tunneld/main.go
+++ b/cmd/tunneld/main.go
@@ -92,7 +92,7 @@ func sighandler(c chan os.Signal, s *server.Server) {
}
func initSignals(s *server.Server) {
- var c = make(chan os.Signal)
+ var c = make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGINT, syscall.SIGTERM)