Merge pull request #1 from ActiveState/master

Don't close a pty that was never started as it causes a panic
This commit is contained in:
photostorm
2023-03-23 21:27:36 -04:00
committed by GitHub

View File

@@ -66,7 +66,6 @@ func StartWithAttrs(c *exec.Cmd, sz *Winsize, attrs *syscall.SysProcAttr) (Pty,
err = w.Start()
if err != nil {
_ = pty.Close()
return nil, err
}