Skip to content

Commit

Permalink
removing SIGKILL hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jprobinson committed Dec 19, 2015
1 parent 7ad119e commit 2666ed1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/pubsub/sqs-sub/service/sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func Run() (err error) {

go func() {
ch := make(chan os.Signal, 1)
signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT, syscall.SIGKILL)
signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT)
Log.Infof("received kill signal %s", <-ch)
err = sub.Stop()
}()
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func Run() error {

// parse address for host, port
ch := make(chan os.Signal, 1)
signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT, syscall.SIGKILL)
signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT)
Log.Infof("Received signal %s", <-ch)
return Stop()
}
Expand Down

0 comments on commit 2666ed1

Please sign in to comment.