Skip to content

Commit

Permalink
Close the tty device when finishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jun 10, 2021
1 parent 15d485c commit 6582146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tty_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6582146

Please sign in to comment.