From 8d48900cd292ac147ead32530cab6a27c268ff80 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 27 Sep 2021 07:30:29 -0700 Subject: [PATCH] fixes #489 Fix for #480 causes disengage to stall for another event (#490) --- tty_unix.go | 1 - 1 file changed, 1 deletion(-) diff --git a/tty_unix.go b/tty_unix.go index dbd961bb..aa6b7d5a 100644 --- a/tty_unix.go +++ b/tty_unix.go @@ -72,7 +72,6 @@ func (tty *devTty) Start() error { if tty.f, err = os.OpenFile(tty.dev, os.O_RDWR, 0); err != nil { return err } - tty.fd = int(tty.f.Fd()) if !term.IsTerminal(tty.fd) { return errors.New("device is not a terminal")