Copied a epoll example