From: Howard Chu Date: Mon, 5 Jan 2009 22:09:10 +0000 (+0000) Subject: ITS#5855 fix Windows wake_sds close X-Git-Tag: ACLCHECK_0~1015 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c6b18cd7c506c1b2b7549560316edf9b33a9be34;p=openldap ITS#5855 fix Windows wake_sds close --- 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