mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 19:51:41 +00:00
tsshd: fix double exit with different exit codes
Signed-off-by: Joonas Loppi <joonas@joonas.fi>
This commit is contained in:
parent
283ae702c1
commit
a3b709f0c4
@ -157,8 +157,9 @@ func handleSSH(s ssh.Session) {
|
|||||||
cmd.Process.Kill()
|
cmd.Process.Kill()
|
||||||
if err := cmd.Wait(); err != nil {
|
if err := cmd.Wait(); err != nil {
|
||||||
s.Exit(1)
|
s.Exit(1)
|
||||||
}
|
} else {
|
||||||
s.Exit(0)
|
s.Exit(0)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user