if (epoll_ctl(epollFd, EPOLL_CTL_ADD, listenFd, &event)) {
throw std::runtime_error("Failed to add listenFd to epoll");
}
这句话删除,在运行函数里已经有了select守候。
【 在 Algoquant 的大作中提到: 】
: 以下由ds生成:
: #include <iostream>
: #include <thread>
: ...................
--
修改:ylh1969 FROM 221.218.60.*
FROM 221.218.60.*