examples/ssh-pty: wait for child process after client disconnect (#104)

This commit is contained in:
kuehnelth 2019-06-19 11:03:30 +02:00 committed by Kaleb Elwert
parent 86efb70628
commit 446473b0d4

@ -37,6 +37,7 @@ func main() {
io.Copy(f, s) // stdin
}()
io.Copy(s, f) // stdout
cmd.Wait()
} else {
io.WriteString(s, "No PTY requested.\n")
s.Exit(1)