X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=vendor%2Fgithub.com%2Ftendermint%2Ftmlibs%2Fcommon%2Fos.go;h=4a9f3406400e39d43b356527c09958c33bf06e03;hp=36fc969faaea0420a0e02a71ba7394ac3a7c7cd3;hb=e57f41f037f3f37fd7253e34f8a04e60a125e634;hpb=620deabb3a00c7995b190b5ed47a224826165ecf diff --git a/vendor/github.com/tendermint/tmlibs/common/os.go b/vendor/github.com/tendermint/tmlibs/common/os.go index 36fc969f..4a9f3406 100644 --- a/vendor/github.com/tendermint/tmlibs/common/os.go +++ b/vendor/github.com/tendermint/tmlibs/common/os.go @@ -39,7 +39,7 @@ func GoPath() string { // with code 1. func TrapSignal(cb func()) { c := make(chan os.Signal, 1) - signal.Notify(c, os.Interrupt, syscall.SIGTERM) + signal.Notify(c, os.Interrupt, os.Kill, syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGKILL) go func() { for sig := range c { fmt.Printf("captured %v, exiting...\n", sig)