Is there a way to find out errno when epoll_wait returns EPOLLERR for a particular handle?
Is there any additional information about the nature of the error?
Edit:
Adding more information to prevent ambiguity
epoll_wait expects several file descriptors. When you call epoll_wait you pass it an array of epoll_event structures:
struct epoll_event { uint32_t events; epoll_data_t data; };
The epoll_data_t structure has the same details as the one you used with epoll_ctl to add a file descriptor to epoll:
typedef union epoll_data { void *ptr; int fd; uint32_t u32; uint64_t u64; } epoll_data_t;
I'm looking for what happens when an error occurs in one of the file descriptors that epoll expects.
i.e.: (epoll_event.events & EPOLLERR) == 1 - is there a way to find out more information about the error in the file descriptor?
linux epoll
Steve lorimer
source share