mirror of
https://github.com/oatpp/oatpp.git
synced 2025-01-24 16:53:59 +08:00
check for EPOLLEXCLUSIVE flag
This commit is contained in:
parent
258bf4e8b2
commit
a59a6d7166
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user