Closed ancloud-teach closed 4 years ago
in the epollset constructor, it create the epollfd. epollfd = epoll_create1(0); but in the destructor, it don't close it. template
epollfd = epoll_create1(0);
epollset<SocketT>::~epollset(void) { close(epollfd); /* add close the epollfd */ delete[] events; }
yes! you're right. Thank you for the find! Awkward that this has escaped me for so long :)
in the epollset constructor, it create the epollfd.
epollfd = epoll_create1(0);
but in the destructor, it don't close it. template