Suppose I create epoll file descriptor (epfd) by call
epfd = epoll_create( 10 );
Next I adding some count of file descriptors into this set by calling epoll_ctl(epfd,EPOLL_CTL_ADD,...) and wait for events in event loop by calling epoll_wait in separate thread.
What happened if I close epfd (by call close(epfd) in thread, other then epoll_wait thread) when epoll set is not empty and epoll_wait(epfd,...) in progress? Is epoll_wait terminated? With which results?
select()
's manual page seems to no longer be part ofepoll_wait()
's page (while it is still present inpoll()
's, for example). – Herbalist