]> git.sur5r.net Git - openldap/commitdiff
Make sure we yield() on a failed accept()
authorKurt Zeilenga <kurt@openldap.org>
Thu, 10 May 2001 17:39:10 +0000 (17:39 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 10 May 2001 17:39:10 +0000 (17:39 +0000)
servers/slapd/daemon.c

index 733272e57156e7b1c99b32ec228a11e32430f3ca..433d123630507f230239d381e4262b33f005558a 100644 (file)
@@ -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