Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Switch epoll to edge-triggered flavour
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+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; |
|
|