ITS#3802, #3999 skip wake_sds in epoll event loop

This commit is contained in:
Howard Chu 2005-09-04 15:04:09 +00:00
parent c6e4254b8f
commit 784554f1bb

View file

@ -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",