mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 19:53:58 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user