From b37c553c714c28653191ee566491707fe1b6b978 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 12 Feb 2009 17:05:00 +0000 Subject: [PATCH] Ignore hangups on removed sockets --- servers/slapd/daemon.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 ); + } } } } -- 2.39.5