mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Make sure we yield() on a failed accept()
This commit is contained in:
parent
4baa7c47da
commit
af2ab5f0a5
@ -1120,7 +1120,7 @@ slapd_daemon_task(
|
||||
Debug( LDAP_DEBUG_CONNS, "daemon: select timeout - yielding\n",
|
||||
0, 0, 0 );
|
||||
#endif
|
||||
ldap_pvt_thread_yield();
|
||||
ldap_pvt_thread_yield();
|
||||
continue;
|
||||
|
||||
default: /* something happened - deal with it */
|
||||
@ -1185,6 +1185,7 @@ slapd_daemon_task(
|
||||
(long) slap_listeners[l]->sl_sd, err,
|
||||
sock_errstr(err) );
|
||||
#endif
|
||||
ldap_pvt_thread_yield();
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -1201,6 +1202,7 @@ slapd_daemon_task(
|
||||
(long) s, (long) dtblsize, 0 );
|
||||
#endif
|
||||
slapd_close(s);
|
||||
ldap_pvt_thread_yield();
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user