mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-03 09:16:30 -04:00
poll: Prevent libevent from spinning if POLLNVAL occurs
This can happen, for example if libevent is being used to poll fds given by another library where the other library closes the fds without notifying the program using it that said fds were closed. In this case, libevent will simply spin on poll() since there are active fds, but won't call any event callback to handle the condition. In epoll case after socket closed it automatically removed from epfd, so IOW it will not spin in epoll* API, just a timeout. Fixes: #379
This commit is contained in:
parent
9ac000c724
commit
675974ce30
Loading…
x
Reference in New Issue
Block a user