mirror of
https://github.com/creack/pty.git
synced 2026-04-01 11:07:11 +09:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user