From 4cc97573e8765e708d469fd5ef101c48125070a3 Mon Sep 17 00:00:00 2001 From: Mikhail Iudin Date: Tue, 1 Oct 2024 19:42:16 +0200 Subject: [PATCH] kill properly --- cmd/perfstand/internal/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/perfstand/internal/util.go b/cmd/perfstand/internal/util.go index 424fb92e9..451c472ac 100644 --- a/cmd/perfstand/internal/util.go +++ b/cmd/perfstand/internal/util.go @@ -68,7 +68,7 @@ func SendResultsToHttp(apiKey string, events []Event) error { } func KillServer() error { - return ExecuteCommand("kill $(lsof -i :31007 -t) ; echo \"Server killed\"") + return ExecuteCommand("kill -9 $(lsof -i :31007 -t) ; echo \"Server killed\"") } func ExecuteCommand(command string) error {