Browse Source

Clean dangling agent socket

master
aeris 1 year ago
parent
commit
8568e627e1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      agent.go

+ 1
- 0
agent.go View File

@@ -85,6 +85,7 @@ func (a *Agent) start() {
fmt.Fprintf(os.Stderr, "Start new agent for identity %s\n", a.Identity.Name)
sock := a.Path + ".sock"

syscall.Unlink(sock)
cmd := exec.Command("ssh-agent", "-a", sock)
o, e, err := capture3(cmd)
if err != nil {


Loading…
Cancel
Save