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

fix(driver,poll): ENOENT on Linux #263

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

Berrysoft
Copy link
Member

We have noticed that the CI on Linux sometimes reports an error on the dispatcher test, but haven't found the cause until now. The reason isn't related to the dispatcher, but because the epoll returns ENOENT if the fd is reused by another source while we still call modify to change the event. The solution is simple: remove the fd from the registry and poll if no op is waiting for it.

@Berrysoft Berrysoft added bug Something isn't working driver: polling About the polling driver package: driver Related to compio-driver labels Jun 1, 2024
@Berrysoft Berrysoft self-assigned this Jun 1, 2024
Copy link
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@George-Miao George-Miao merged commit 8f83b7b into compio-rs:master Jun 1, 2024
29 checks passed
@Berrysoft Berrysoft deleted the fix/poll-enoent branch June 1, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working driver: polling About the polling driver package: driver Related to compio-driver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants