summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-23 17:23:38 +0300
committerWolfy-J <[email protected]>2018-06-23 17:23:38 +0300
commitacc6cee9e7faa5da0574723272c076cf1b77ce3f (patch)
tree009b9f7ab8e717d255c8dc08c42b3c8207667b08 /cmd
parent01744322290cdaa554e49a573aa5bf46f9463ee2 (diff)
properly close
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/cmd/serve.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/rr/cmd/serve.go b/cmd/rr/cmd/serve.go
index c53f7ce9..4ae2a9d9 100644
--- a/cmd/rr/cmd/serve.go
+++ b/cmd/rr/cmd/serve.go
@@ -36,8 +36,7 @@ func init() {
RunE: serveHandler,
})
- signal.Notify(stopSignal, syscall.SIGTERM)
- signal.Notify(stopSignal, syscall.SIGINT)
+ signal.Notify(stopSignal, os.Interrupt, os.Kill, syscall.SIGTERM)
}
func serveHandler(cmd *cobra.Command, args []string) error {