You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tempfork
James Tucker e9a28ff0db
ssh/tailssh: fix exit-status ordering and improve signal/exit code handling
Fixes a race where CloseWrite() could be called before Exit(), causing
SSH clients (especially on macOS) to miss the exit status. Simplified
run() to use sync.WaitGroup and guarantee Exit() is sent before EOF per
RFC 4254 section 6.10.

Also:
- Send SIGHUP instead of SIGKILL on session termination
- Use exit code 127 for command not found
- Use exit code 255 for SSH permission/protocol errors
- Use exit code 254 for recording failures
- Complete TCP handlers only after I/O completes

Fixes tailscale/tailscale#18256

Signed-off-by: James Tucker <james@tailscale.com>
1 week ago
..
acme tempfork/acme: update to latest version (#15543) 9 months ago
gliderlabs/ssh ssh/tailssh: fix exit-status ordering and improve signal/exit code handling 1 week ago
heap all: use Go 1.22 range-over-int 2 years ago
httprec feature/c2n: move answerC2N code + deps out of control/controlclient 3 months ago
spf13/cobra cmd/tailscale: add shell tab-completion 2 years ago
sshtest ssh/tailssh: accept passwords and public keys 11 months ago