mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Clean up WSAENOTSOCK code (no functional change)
This commit is contained in:
parent
be0afc82f0
commit
3ad45a0662
@ -689,7 +689,7 @@ slapd_daemon_task(
|
||||
int ns;
|
||||
int at;
|
||||
ber_socket_t nfds;
|
||||
#define SLAPD_EBADF_LIMIT 10
|
||||
#define SLAPD_EBADF_LIMIT 16
|
||||
int ebadf = 0;
|
||||
|
||||
#define SLAPD_IDLE_CHECK_LIMIT 4
|
||||
@ -783,8 +783,9 @@ slapd_daemon_task(
|
||||
int err = sock_errno();
|
||||
|
||||
if( err == EBADF
|
||||
#ifdef HAVE_WINSOCK
|
||||
|| err == WSAENOTSOCK /* you'd think this would be EBADF */
|
||||
#ifdef WSAENOTSOCK
|
||||
/* you'd think this would be EBADF */
|
||||
|| err == WSAENOTSOCK
|
||||
#endif
|
||||
) {
|
||||
if (++ebadf < SLAPD_EBADF_LIMIT)
|
||||
|
Loading…
Reference in New Issue
Block a user