check for EPOLLEXCLUSIVE flag

This commit is contained in:
lganzzzo 2019-04-27 02:56:24 +03:00
parent 258bf4e8b2
commit a59a6d7166

View File

@ -59,7 +59,12 @@ void IOEventWorker::initEventQueue() {
std::memset(&event, 0, sizeof(struct epoll_event));
event.data.ptr = this;
#ifdef EPOLLEXCLUSIVE
event.events = EPOLLIN | EPOLLET | EPOLLEXCLUSIVE;
#else
event.events = EPOLLIN | EPOLLET;
#endif
auto res = ::epoll_ctl(m_eventQueueHandle, EPOLL_CTL_ADD, m_wakeupTrigger, &event);
if(res == -1) {