Skip to content

Commit 2c67a2f

Browse files
authored
fix: Close bug in pty (#3166)
1 parent 592340c commit 2c67a2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pty/pty_other.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func (p *otherPty) Close() error {
5656

5757
err := p.pty.Close()
5858
if err != nil {
59+
_ = p.tty.Close()
5960
return err
6061
}
6162

0 commit comments

Comments
 (0)