diff options
author | Wolfy-J <[email protected]> | 2018-06-23 17:23:38 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-23 17:23:38 +0300 |
commit | acc6cee9e7faa5da0574723272c076cf1b77ce3f (patch) | |
tree | 009b9f7ab8e717d255c8dc08c42b3c8207667b08 /cmd | |
parent | 01744322290cdaa554e49a573aa5bf46f9463ee2 (diff) |
properly close
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr/cmd/serve.go | 3 |
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 { |