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

epoll: add support for polling on epoll file descriptors #2074

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

francescolavra
Copy link
Member

In addition, epoll_ctl() now returns -EINVAL if called on a non-epoll file descriptor, or if the file descriptor being added, deleted, or modified is the same as the epoll file descriptor on which epoll_ctl() is called.

Closes #1192.

In addition, -EINVAL is now returned when the file descriptor being
added, deleted, or modified is the same as the epoll file
descriptor on which epoll_ctl() is called.
This minimizes the number of memory accesses needed to retrieve the
epoll struct pointer and the epoll type.
The return value indicates whether any of the invoked handlers
consumed the events.
This feature will be used in the next commit.
@francescolavra
Copy link
Member Author

I amended the code so that a polling syscall on a set of file descriptors that contains an epoll instance properly returns when the epoll instance becomes readable.

@francescolavra francescolavra merged commit a72692f into master Nov 1, 2024
7 checks passed
@francescolavra francescolavra deleted the feature/epoll branch November 1, 2024 12:02
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.

epoll file descriptor is not poll/epoll/selectable
1 participant