Skip to content

Commit 9854446

Browse files
committed
fix(cosmos): have daemon also trap os.Interrupt for good luck
1 parent e6cf9b9 commit 9854446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

golang/cosmos/daemon/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func RunWithController(sendToController cmd.Sender) {
6060
// Exit on Control-C and kill.
6161
// Without this explicitly, ag-chain-cosmos ignores them.
6262
sigs := make(chan os.Signal, 1)
63-
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
63+
signal.Notify(sigs, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
6464
go func() {
6565
<-sigs
6666
os.Exit(98)

0 commit comments

Comments
 (0)