From: Howard Chu Date: Thu, 12 Feb 2009 17:05:00 +0000 (+0000) Subject: Ignore hangups on removed sockets X-Git-Tag: ACLCHECK_0~834 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b37c553c714c28653191ee566491707fe1b6b978;p=openldap Ignore hangups on removed sockets --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index ddea122b54..90c85ec21b 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 ); + } } } }