nanovms / nanos

A kernel designed to run one and only one application in a virtualized environment
https://nanos.org
Apache License 2.0
2.66k stars 137 forks source link

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

Closed francescolavra closed 3 weeks ago

francescolavra commented 1 month ago

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.

francescolavra commented 1 month ago

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.