Skip to content

Commit a2394c5

Browse files
authored
Merge pull request #14 from e06/master
fix #13: wait for process termination in Terminal.Close.
2 parents e1c3954 + 2e47108 commit a2394c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

terminal_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func (t *Terminal) SetWinSize(cols, rows uint16) error {
8787
func (t *Terminal) Close() error {
8888
if t.cmd.Process != nil {
8989
t.cmd.Process.Kill()
90+
t.cmd.Process.Wait()
9091
}
9192

9293
t.wait_ack.Store(0)

0 commit comments

Comments
 (0)