From e16ad179377be4c52350ae98306d0323a287f70e Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Fri, 3 May 2024 19:30:17 +0300 Subject: [PATCH] Fixing setproctitle function Signed-off-by: galal-hussein (cherry picked from commit bf6e8742415b718d78ccc7ebe8eb4525169680dd) Signed-off-by: Brad Davidson --- pkg/proctitle/proctile.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/proctitle/proctile.go b/pkg/proctitle/proctile.go index 16bed1cab39d..178dfa9ef069 100644 --- a/pkg/proctitle/proctile.go +++ b/pkg/proctitle/proctile.go @@ -4,11 +4,9 @@ package proctitle import ( - "os" - "github.com/erikdubbelboer/gspt" ) func SetProcTitle(cmd string) { - gspt.SetProcTitle(os.Args[0] + " agent") + gspt.SetProcTitle(cmd) }