MCPcopy Index your code
hub / github.com/tailscale/tailscale / Exit

Method Exit

ssh/tailssh/session.go:195–199  ·  view source on GitHub ↗

Exit sends an exit status to the client and closes the session.

(code int)

Source from the content-addressed store, hash-verified

193
194// Exit sends an exit status to the client and closes the session.
195func (s *Session) Exit(code int) error {
196 err := s.sess.Exit(code)
197 s.Close()
198 return err
199}
200
201// Stderr returns an io.Writer for the SSH stderr channel.
202func (s *Session) Stderr() io.Writer {

Callers 15

TestListenSSHFunction · 0.45
mainFunction · 0.45
handleGameFunction · 0.45
handleDebugMessageMethod · 0.45
receiveDERPMethod · 0.45
mkReceiveFuncMethod · 0.45
mainFunction · 0.45
runMethod · 0.45
TestDoDropPrivilegesFunction · 0.45
listenSSHFunction · 0.45
CloseMethod · 0.45

Calls 1

CloseMethod · 0.95

Tested by 8

TestListenSSHFunction · 0.36
TestDoDropPrivilegesFunction · 0.36
TestMainFunction · 0.36
TestMainFunction · 0.36
TestMainFunction · 0.36
TestMainFunction · 0.36
TestMainFunction · 0.36
TestMainFunction · 0.36