mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#9650 Move ldap_pvt_thread_initialize into main.c
This commit is contained in:
parent
fd5b6a170e
commit
c34f2a1b29
2 changed files with 2 additions and 8 deletions
|
|
@ -150,14 +150,6 @@ lload_libevent_init( void )
|
|||
lload_libevent_cond_timedwait
|
||||
};
|
||||
|
||||
#ifndef BALANCER_MODULE
|
||||
/* only necessary if lload is a server, slapd already calls
|
||||
* ldap_pvt_thread_initialize() */
|
||||
if ( ldap_pvt_thread_initialize() ) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
evthread_set_lock_callbacks( &cbs );
|
||||
evthread_set_condition_callbacks( &cond_cbs );
|
||||
evthread_set_id_callback( ldap_pvt_thread_self );
|
||||
|
|
|
|||
|
|
@ -378,6 +378,8 @@ main( int argc, char **argv )
|
|||
|
||||
slap_sl_mem_init();
|
||||
|
||||
(void) ldap_pvt_thread_initialize();
|
||||
|
||||
serverName = lutil_progname( "lloadd", argc, argv );
|
||||
|
||||
#ifdef HAVE_NT_SERVICE_MANAGER
|
||||
|
|
|
|||
Loading…
Reference in a new issue