Commit e16ad179 authored by galal-hussein's avatar galal-hussein Committed by Brad Davidson

Fixing setproctitle function

Signed-off-by: 's avatargalal-hussein <hussein.galal.ahmed.11@gmail.com> (cherry picked from commit bf6e8742415b718d78ccc7ebe8eb4525169680dd) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent a45cef49
...@@ -4,11 +4,9 @@ ...@@ -4,11 +4,9 @@
package proctitle package proctitle
import ( import (
"os"
"github.com/erikdubbelboer/gspt" "github.com/erikdubbelboer/gspt"
) )
func SetProcTitle(cmd string) { func SetProcTitle(cmd string) {
gspt.SetProcTitle(os.Args[0] + " agent") gspt.SetProcTitle(cmd)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment