From c6b18cd7c506c1b2b7549560316edf9b33a9be34 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 5 Jan 2009 22:09:10 +0000 Subject: [PATCH] ITS#5855 fix Windows wake_sds close --- servers/slapd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index f5555d6a18..fea9d35e23 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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 -- 2.39.5