test: branch for fix of ci (#4266)

* test:

- testing replacing syscall with os.FindProces

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* address pr comments
This commit is contained in:
Marko
2019-12-20 11:42:42 +01:00
committed by GitHub
parent 7368ba358b
commit a18380901f

View File

@@ -121,7 +121,11 @@ func killProc(pid uint64, dir string) error {
go func() {
// Killing the Tendermint process with the '-ABRT|-6' signal will result in
// 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)
}