From: Kurt Zeilenga Date: Thu, 10 May 2001 17:39:10 +0000 (+0000) Subject: Make sure we yield() on a failed accept() X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1421 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af2ab5f0a55336ad9dfd00b93ea997b6f3a47583;p=openldap Make sure we yield() on a failed accept() --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 733272e571..433d123630 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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