Skip to content

tty: do not close /dev/tty on macos#30

Merged
rockorager merged 1 commit into
rockorager:mainfrom
neurocyte:dont-close-tty-on-macos
May 23, 2024
Merged

tty: do not close /dev/tty on macos#30
rockorager merged 1 commit into
rockorager:mainfrom
neurocyte:dont-close-tty-on-macos

Conversation

@neurocyte
Copy link
Copy Markdown
Collaborator

Attempting to close /dev/tty may block indefinitely on macos if another thread is already blocked on a read operation. As there is no practical use for closing /dev/tty on exit besides unblocking other threads (which does not work on macos anyway) we can just skip the close call.

Attempting to close /dev/tty may block indefinitely on macos if another
thread is already blocked on a read operation. As there is no practical
use for closing /dev/tty on exit besides unblocking other threads (which
does not work on macos anyway) we can just skip the close call.
@rockorager rockorager merged commit 1c11333 into rockorager:main May 23, 2024
@neurocyte neurocyte deleted the dont-close-tty-on-macos branch June 4, 2024 19:16
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

Successfully merging this pull request may close these issues.

2 participants