]> git.sur5r.net Git - openldap/commitdiff
ITS#5855 fix Windows wake_sds close
authorHoward Chu <hyc@openldap.org>
Mon, 5 Jan 2009 22:09:10 +0000 (22:09 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 5 Jan 2009 22:09:10 +0000 (22:09 +0000)
servers/slapd/daemon.c

index f5555d6a18e92c8e329f3eb1986e41aa8cb1e512..fea9d35e2324ee5f9c57fda37ecb9922e10d709a 100644 (file)
@@ -1646,7 +1646,7 @@ slapd_daemon_destroy( void )
 {
        connections_destroy();
 #ifdef HAVE_WINSOCK
-       if ( wake_sds[1] != INVALID_SOCKET )
+       if ( wake_sds[1] != INVALID_SOCKET && wake_sds[1] != wake_sds[0] )
 #endif /* HAVE_WINSOCK */
                tcp_close( SLAP_FD2SOCK(wake_sds[1]) );
 #ifdef HAVE_WINSOCK