Skip to content

Commit c97328a

Browse files
committed
Fix reference to tty
1 parent 737f438 commit c97328a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pty/start_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func startPty(cmd *exec.Cmd) (PTY, *os.Process, error) {
3535
// has finished running. See:
3636
// https://github.com/creack/pty/issues/127#issuecomment-932764012
3737
_ = cmd.Wait()
38-
runtime.KeepAlive(tty)
38+
runtime.KeepAlive(ptty)
3939
}()
4040
oPty := &otherPty{
4141
pty: ptty,

0 commit comments

Comments
 (0)