Commit d020897f authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Ondřej Kuzník
Browse files

Initialise listeners after all workers have been

parent 37a474b5
......@@ -1287,10 +1287,6 @@ slapd_daemon( struct event_base *daemon_base )
daemon_tid =
ch_malloc( slapd_daemon_threads * sizeof(ldap_pvt_thread_t) );
if ( (rc = slap_listener_activate()) != 0 ) {
return rc;
}
for ( i = 0; i < slapd_daemon_threads; i++ ) {
base = event_base_new();
if ( !base ) {
......@@ -1313,6 +1309,10 @@ slapd_daemon( struct event_base *daemon_base )
}
}
if ( (rc = slap_listener_activate()) != 0 ) {
return rc;
}
current_backend = LDAP_CIRCLEQ_FIRST( &backend );
LDAP_CIRCLEQ_FOREACH ( b, &backend, b_next ) {
struct event *retry_event =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment