From 927b1974eed7afae29f04b9329035d003fd39580 Mon Sep 17 00:00:00 2001 From: abriles1216 Date: Thu, 14 Nov 2024 14:31:15 -0700 Subject: [PATCH] removed path hard coding (#430) --- plugins/util/util.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/util/util.go b/plugins/util/util.go index 468e8db6..f4550482 100644 --- a/plugins/util/util.go +++ b/plugins/util/util.go @@ -3,7 +3,6 @@ package util import ( "os" "os/exec" - "path/filepath" "strconv" "strings" "sync" @@ -45,13 +44,6 @@ func RunSigusr1(executable string) error { // @param executable string - the binary process name // @param signal syscall.Signal - the signal type to send func SendSignal(executable string, signal syscall.Signal) error { - - if !filepath.IsAbs(executable) { - // match the full path of the executable - executable = "/usr/bin/" + executable - logger.Debug("Exectutable transformed to %s\n", executable) - } - logger.Debug("Sending %s to %s\n", signal, executable) pidStr, err := exec.Command("pidof", executable).CombinedOutput()