Move ldap_pvt_thread_initialize() earlier. (See -devel; same as ITS#3793)

This commit is contained in:
Howard Chu 2005-08-10 23:19:47 +00:00
parent 95498d0ddd
commit 99e2e5d886

View File

@ -272,6 +272,8 @@ int main( int argc, char **argv )
slap_sl_mem_init();
(void) ldap_pvt_thread_initialize();
serverName = lutil_progname( "slapd", argc, argv );
if ( strcmp( serverName, "slapd" ) ) {
@ -531,8 +533,6 @@ unhandled_option:;
}
}
(void) ldap_pvt_thread_initialize();
ber_set_option(NULL, LBER_OPT_DEBUG_LEVEL, &slap_debug);
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &slap_debug);
ldif_debug = slap_debug;