Fix segmentation for epoll