Make ssh sockets close on exit
This commit is contained in:
parent
f5c20905a9
commit
4afd6ef9b1
|
@ -22,6 +22,7 @@ func (v SSHAgentServer) Serve() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer listener.Close()
|
||||
|
||||
log.Info("SSH Agent listening on %s", path)
|
||||
|
||||
|
|
|
@ -294,6 +294,7 @@ func StartUnixAgent(path string, runtimeConfig config.RuntimeConfig) error {
|
|||
println("listen error", err.Error())
|
||||
return err
|
||||
}
|
||||
defer l.Close()
|
||||
log.Info("Agent listening on %s...", path)
|
||||
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue