mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
ITS#3802, #3999 skip wake_sds in epoll event loop
This commit is contained in:
parent
c6e4254b8f
commit
784554f1bb
1 changed files with 8 additions and 0 deletions
|
|
@ -1918,6 +1918,10 @@ slapd_daemon_task(
|
|||
#endif
|
||||
) continue;
|
||||
|
||||
/* Don't log internal wake events */
|
||||
if ( SLAP_EVENT_FD( i ) == wake_sds[0] )
|
||||
continue;
|
||||
|
||||
r = SLAP_EVENT_IS_READ( i );
|
||||
w = SLAP_EVENT_IS_WRITE( i );
|
||||
if ( r || w ) {
|
||||
|
|
@ -1939,6 +1943,10 @@ slapd_daemon_task(
|
|||
if ( rc ) {
|
||||
fd = SLAP_EVENT_FD( i );
|
||||
|
||||
/* Ignore wake events, they were handled above */
|
||||
if ( fd == wake_sds[0] )
|
||||
continue;
|
||||
|
||||
if( SLAP_EVENT_IS_WRITE( i ) ) {
|
||||
Debug( LDAP_DEBUG_CONNS,
|
||||
"daemon: write active on %d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue