Skip to content

Conversation

blacknon
Copy link

Related issue is #854.

Primarily observed during mouse operations on macOS, it seems that if O_NONBLOCK is not enabled during event::read(), the buffer cannot be read all at once.

However, keeping O_NONBLOCK enabled causes subsequent read() operations to malfunction, resulting in the program's termination. Therefore, I added a process that enables O_NONBLOCK at the start of read(), and disables it again after the reading is complete.

@blacknon blacknon requested a review from TimonPost as a code owner August 25, 2024 13:12
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.

1 participant