Skip to content

Commit

Permalink
Cli: notify on SIGINT (cadence-workflow#4615)
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-sidlauskas authored Nov 4, 2021
1 parent 8510816 commit a370de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/cadence/cadence.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func startHandler(c *cli.Context) {
var daemons []common.Daemon
services := getServices(c)
sigc := make(chan os.Signal, 1)
signal.Notify(sigc, syscall.SIGTERM)
signal.Notify(sigc, syscall.SIGTERM, syscall.SIGINT)
for _, svc := range services {
server := newServer(svc, &cfg)
daemons = append(daemons, server)
Expand Down

0 comments on commit a370de0

Please sign in to comment.