From 81b4184975b713a62784ac951ab21ccd73e0adc9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 5 Jun 2009 00:01:11 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.39.5