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:
Markus Mäkelä
2018-12-01 20:29:22 +02:00
parent 7ea22c3d16
commit 192562d930
2 changed files with 2 additions and 5 deletions

View File

@ -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;
}