From bf6e8742415b718d78ccc7ebe8eb4525169680dd 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 --- 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 16bed1cab3..178dfa9ef0 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) }