Use epoll_create1 instead of epoll_create.