Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX: /dev/tty hangs on close #2

Closed
nsf opened this issue Mar 30, 2012 · 2 comments
Closed

OSX: /dev/tty hangs on close #2

nsf opened this issue Mar 30, 2012 · 2 comments

Comments

@nsf
Copy link
Owner

nsf commented Mar 30, 2012

It seems that on mac you can't block in read and call close at the same time. The close call gets blocked. Probably I shouldn't close /dev/tty stuff at all?

@lilyball
Copy link

+1 for not closing /dev/tty at all. Ideally it would be nice if PollEvent returned when Close() is invoked, but I don't really see how to make that happen cleanly.

@nsf
Copy link
Owner Author

nsf commented Aug 2, 2012

Finally I've made the fix: f422140

Not perfect, but whatever.

@nsf nsf closed this as completed Aug 2, 2012
lalitadithya added a commit to lalitadithya/termbox-go that referenced this issue Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants