Skip to content

Commit

Permalink
fix(cosmos): have daemon also trap os.Interrupt for good luck
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 25, 2021
1 parent e6cf9b9 commit 9854446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golang/cosmos/daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func RunWithController(sendToController cmd.Sender) {
// Exit on Control-C and kill.
// Without this explicitly, ag-chain-cosmos ignores them.
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
signal.Notify(sigs, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
go func() {
<-sigs
os.Exit(98)
Expand Down

0 comments on commit 9854446

Please sign in to comment.