mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-12 07:13:41 -05:00
Clean up WSAENOTSOCK code (no functional change)
This commit is contained in:
parent
be0afc82f0
commit
3ad45a0662
1 changed files with 4 additions and 3 deletions
|
|
@ -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 a new issue