]> git.sur5r.net Git - openldap/commitdiff
Fix writefds init on Windows
authorHoward Chu <hyc@openldap.org>
Tue, 11 Oct 2005 02:56:56 +0000 (02:56 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 11 Oct 2005 02:56:56 +0000 (02:56 +0000)
servers/slapd/daemon.c

index f7e8a7f9b4c7312fd3b7994677747dcb37b62e76..037f360240aa572a9c6efb7614c51ead4b493fb4 100644 (file)
@@ -232,7 +232,9 @@ static struct slap_daemon {
 #define SLAP_EVENT_INIT \
        AC_MEMCPY( &readfds, &slap_daemon.sd_readers, sizeof(fd_set) ); \
        if ( nwriters ) \
-               AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) )
+               AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) ); \
+       else \
+               FD_ZERO( &writefds )
 
 #ifdef FD_SETSIZE
 #define        CHK_SETSIZE     \