From 784554f1bbf37ea07b33f9a4088ad821a8cefbe6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 4 Sep 2005 15:04:09 +0000 Subject: [PATCH] ITS#3802, #3999 skip wake_sds in epoll event loop --- servers/slapd/daemon.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index e161af4513..a0125a19fc 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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", -- 2.39.5