diff --git a/pty/pty_other.go b/pty/pty_other.go index d6e21d4d3f..26448c88be 100644 --- a/pty/pty_other.go +++ b/pty/pty_other.go @@ -56,6 +56,7 @@ func (p *otherPty) Close() error { err := p.pty.Close() if err != nil { + _ = p.tty.Close() return err }