From: Quanah Gibson-Mount Date: Fri, 13 Feb 2009 03:35:39 +0000 (+0000) Subject: More for ITS#5886 X-Git-Tag: OPENLDAP_REL_ENG_2_4_14~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f51306571eea382d8ed3c93c78097b81a2305f1d;p=openldap More for ITS#5886 --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index ddea122b54..fe87e196a4 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -2545,12 +2545,14 @@ slapd_daemon_task( } else if ( !w ) { Debug( LDAP_DEBUG_CONNS, "daemon: hangup on %d\n", fd, 0, 0 ); + if ( SLAP_SOCK_IS_ACTIVE( fd )) { #ifdef HAVE_EPOLL - /* Don't keep reporting the hangup - */ - SLAP_EPOLL_SOCK_SET( fd, EPOLLET ); + /* Don't keep reporting the hangup + */ + SLAP_EPOLL_SOCK_SET( fd, EPOLLET ); #endif - connection_hangup( fd ); + connection_hangup( fd ); + } } } }