Skip to content

Commit 446473b

Browse files
kuehnelthbelak
authored andcommitted
examples/ssh-pty: wait for child process after client disconnect (#104)
1 parent 86efb70 commit 446473b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_examples/ssh-pty/pty.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func main() {
3737
io.Copy(f, s) // stdin
3838
}()
3939
io.Copy(s, f) // stdout
40+
cmd.Wait()
4041
} else {
4142
io.WriteString(s, "No PTY requested.\n")
4243
s.Exit(1)

0 commit comments

Comments
 (0)