mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Don't shutdown when select() returns EBADF.
This commit is contained in:
parent
64bb1a99f4
commit
446ef413f6
@ -359,7 +359,8 @@ slapd_daemon_task(
|
||||
switch(ns = select( nfds, &readfds, &writefds, 0, tvp )) {
|
||||
case -1: { /* failure - try again */
|
||||
int err = errno;
|
||||
if( err != EINTR ) {
|
||||
|
||||
if( err != EINTR || err == EBADF) {
|
||||
Debug( LDAP_DEBUG_CONNS,
|
||||
"daemon: select failed (%d): %s\n",
|
||||
err,
|
||||
|
Loading…
Reference in New Issue
Block a user