From 65821462b51d4619e662e4214809c9a6d511dc84 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 10 Jun 2021 06:55:56 -0700 Subject: [PATCH] Close the tty device when finishing. --- tty_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty_unix.go b/tty_unix.go index 71b1e7a8..0c6ea784 100644 --- a/tty_unix.go +++ b/tty_unix.go @@ -52,7 +52,7 @@ func (tty *devTty) Write(b []byte) (int, error) { } func (tty *devTty) Close() error { - return nil + return tty.f.Close() } func (tty *devTty) Start() error {