|
@ -121,7 +121,11 @@ func killProc(pid uint64, dir string) error { |
|
|
go func() { |
|
|
go func() { |
|
|
// Killing the Tendermint process with the '-ABRT|-6' signal will result in
|
|
|
// Killing the Tendermint process with the '-ABRT|-6' signal will result in
|
|
|
// a goroutine stacktrace.
|
|
|
// a goroutine stacktrace.
|
|
|
if err := syscall.Kill(int(pid), syscall.SIGABRT); err != nil { |
|
|
|
|
|
|
|
|
p, err := os.FindProcess(os.Getpid()) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
fmt.Fprintf(os.Stderr, "failed to find PID to kill Tendermint process: %s", err) |
|
|
|
|
|
} |
|
|
|
|
|
if err = p.Signal(syscall.SIGABRT); err != nil { |
|
|
fmt.Fprintf(os.Stderr, "failed to kill Tendermint process: %s", err) |
|
|
fmt.Fprintf(os.Stderr, "failed to kill Tendermint process: %s", err) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|