Q2Can two epoll sets wait for the same file descriptor? If so, are events reported to both epoll file descriptors?
A2Yes, and events would be reported to both. However, it is not recommended.
=========It's not clear what "not recommended" means. Furthermore, I don't think there's anything wrong with two epoll file descriptors waiting for different events on the same file descriptor. One's waiting for POLLIN, the other for POLLOUT. What's wrong with that?
Attachment:
pgpVYO4y7RvBB.pgp
Description: PGP signature