Provided that:
- I have created an epoll instance
epfdbyepoll_create, and registered many regular file descriptors byEPOLL_CTL_ADD. - I want to close the epoll instance by
close(epfd)
The manual page does't say whether I must EPOLL_CTL_DEL all file descriptors before close(epfd).
So, my question is:
Is it necessary to remove all file descriptors in the interest list before closing the epoll instance itself?