MXS-2196: Don't force epoll flags
The epoll event flags are now fully controlled by the caller of the Worker::add_fd function. This makes the mechanism more generic and allows both edge triggered and level triggered behavior.
This commit is contained in:
@ -246,7 +246,7 @@ bool MessageQueue::add_to_worker(Worker* pWorker)
|
||||
m_pWorker = NULL;
|
||||
}
|
||||
|
||||
if (pWorker->add_fd(m_read_fd, EPOLLIN, this))
|
||||
if (pWorker->add_fd(m_read_fd, EPOLLIN | EPOLLET, this))
|
||||
{
|
||||
m_pWorker = pWorker;
|
||||
}
|
||||
|
Reference in New Issue
Block a user