]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/daemon.c
ITS#6162
[openldap] / servers / slapd / daemon.c
index 2fcfcebb5e77f95701a79b9de579d18720e1e8da..2350fdcd9ef46f06abcaa19c1e4b6dbbe4456395 100644 (file)
@@ -2582,7 +2582,9 @@ slapd_daemon_task(
 #ifdef HAVE_EPOLL
                                                /* Don't keep reporting the hangup
                                                 */
-                                               SLAP_EPOLL_SOCK_SET( fd, EPOLLET );
+                                               if ( SLAP_SOCK_IS_ACTIVE( fd )) {
+                                                       SLAP_EPOLL_SOCK_SET( fd, EPOLLET );
+                                               }
 #endif
                                        }
                                        connection_read_activate( fd );