eventpump (unix): retry epoll_wait/kqueue on EINTR