Permalink
Browse files

Switch epoll to edge-triggered flavour

  • Loading branch information...
klirichek committed Aug 23, 2018
1 parent 5d52868 commit 5a09c32d7ded56b2c0bd3e2ad7968cb8d6362919
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/searchdha.cpp
@@ -3254,7 +3254,8 @@ void events_change_io ( Task_t * pTask )
sphLogDebugL ( "L EPOLL_CTL_DEL(%d), %d+%d events", pTask->m_ifd, m_iEvents, iEvents );
} else
{
tEv.events = ( bRead ? EPOLLIN : 0 ) | ( bWrite ? EPOLLOUT : 0 );
tEv.events = ( bRead ? EPOLLIN : 0 ) | ( bWrite ? EPOLLOUT : 0 ) | ( ( pTask==&m_dSignalerTask ) ? 0 : EPOLLET );
if ( !pTask->m_uIOActive )
{
iOp = EPOLL_CTL_ADD;

0 comments on commit 5a09c32

Please sign in to comment.