From 2c67a2f30b98b2abfa58b294df5fc62c44267009 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Mon, 25 Jul 2022 16:31:30 +0300 Subject: [PATCH] fix: Close bug in pty (#3166) --- pty/pty_other.go | 1 + 1 file changed, 1 insertion(+) 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 }