From: Howard Chu Date: Fri, 5 Jun 2009 00:01:11 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: ACLCHECK_0~512 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81b4184975b713a62784ac951ab21ccd73e0adc9;p=openldap Fix prev commit --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 2fcfcebb5e..2350fdcd9e 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -2582,7 +2582,9 @@ slapd_daemon_task( #ifdef HAVE_EPOLL /* Don't keep reporting the hangup */ - SLAP_EPOLL_SOCK_SET( fd, EPOLLET ); + if ( SLAP_SOCK_IS_ACTIVE( fd )) { + SLAP_EPOLL_SOCK_SET( fd, EPOLLET ); + } #endif } connection_read_activate( fd );