From 6a7f6d625af0c4659ac7bbf3bcb378f5b02b43dc Mon Sep 17 00:00:00 2001 From: "Harper, Jason M" Date: Thu, 23 Jan 2025 15:04:27 -0800 Subject: [PATCH] add pid to ssh control master file name so that it doesn't get reused by another perfspect invocation --- internal/target/target.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/target/target.go b/internal/target/target.go index 62526ac2..a67044a0 100644 --- a/internal/target/target.go +++ b/internal/target/target.go @@ -656,7 +656,7 @@ func (t *RemoteTarget) prepareSSHFlags(scp bool, useControlMaster bool, prompt b if useControlMaster { controlPathFlags := []string{ "-o", - "ControlPath=" + filepath.Join(os.TempDir(), `control-%h-%p-%r`), + "ControlPath=" + filepath.Join(os.TempDir(), fmt.Sprintf("control-%%h-%%p-%%r-%d", os.Getpid())), "-o", "ControlMaster=auto", "-o",