Skip to content

Commit e17ad95

Browse files
committed
Add comment
1 parent 6a5d5c6 commit e17ad95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/agentssh/agentssh.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ func (s *Server) Close() error {
615615
// Close all active sessions to gracefully
616616
// terminate client connections.
617617
for ss := range s.sessions {
618+
// We call Close on the underlying channel here because we don't
619+
// want to send an exit status to the client (via Exit()).
620+
// Typically OpenSSH clients will return 255 as the exit status.
618621
_ = ss.Close()
619622
}
620623

0 commit comments

Comments
 (0)