From ee5d9b43b54a3becf3cb4025198f24608d35500d Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 20 Mar 2021 22:40:23 +0100 Subject: Update vendor (#1414) --- vendor/github.com/google/gops/agent/agent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/google/gops/agent/agent.go') diff --git a/vendor/github.com/google/gops/agent/agent.go b/vendor/github.com/google/gops/agent/agent.go index 441814c9..80be4bb6 100644 --- a/vendor/github.com/google/gops/agent/agent.go +++ b/vendor/github.com/google/gops/agent/agent.go @@ -16,6 +16,7 @@ import ( "net" "os" gosignal "os/signal" + "path/filepath" "runtime" "runtime/debug" "runtime/pprof" @@ -113,7 +114,7 @@ func Listen(opts Options) error { return err } port := listener.Addr().(*net.TCPAddr).Port - portfile = fmt.Sprintf("%s/%d", gopsdir, os.Getpid()) + portfile = filepath.Join(gopsdir, strconv.Itoa(os.Getpid())) err = ioutil.WriteFile(portfile, []byte(strconv.Itoa(port)), os.ModePerm) if err != nil { return err -- cgit v1.2.3