X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fdaemon.c;h=fe87e196a4629a031e221c75bf981834214175eb;hb=7fe91339dfd08d6c4168c8493f5c1f0faca6ba54;hp=ddea122b54e91695d1facab2863d2e451844f026;hpb=e80731bc192de7a36934260ac75231e76fd12afd;p=openldap 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 ); + } } } }