OSDN Git Service

Add the implementation for dppos
[bytom/vapor.git] / vendor / github.com / tendermint / tmlibs / common / os.go
index 36fc969..4a9f340 100644 (file)
@@ -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)