From 0f66ee8c59ca2a886d440bd3446ef04d6852b287 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 26 Sep 2021 20:42:19 -0700 Subject: [PATCH] fixes #489 Fix for #480 causes disengage to stall for another event --- 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")