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

Only for UNIX OS, modify it to enable O_NONBLOCK and use event::read(). #920

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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