Ignore hangups on removed sockets

This commit is contained in:
Howard Chu 2009-02-12 17:05:00 +00:00
parent 686ceac31f
commit b37c553c71

View file

@ -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 );
}
}
}
}