examples/ssh-pty: wait for child process after client disconnect (#104)
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user