]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 5 Jun 2009 00:01:11 +0000 (00:01 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 5 Jun 2009 00:01:11 +0000 (00:01 +0000)
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 );