Workaround linux epoll bug