Skip to content

Commit

Permalink
fix: don't intercept SIGQUIT
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 8, 2021
1 parent 299baa7 commit 223185a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions golang/cosmos/daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ func Run() {

// RunWithController starts the app with a custom upcall handler.
func RunWithController(sendToController cmd.Sender) {
// Exit on several different signals.
// 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, syscall.SIGQUIT)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
go func() {
<-sigs
os.Exit(98)
Expand Down

0 comments on commit 223185a

Please sign in to comment.