]> git.sur5r.net Git - openldap/commitdiff
Move ldap_pvt_thread_initialize() earlier. (See -devel; same as ITS#3793)
authorHoward Chu <hyc@openldap.org>
Wed, 10 Aug 2005 23:19:47 +0000 (23:19 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 10 Aug 2005 23:19:47 +0000 (23:19 +0000)
servers/slapd/main.c

index 02becaa502dffef82691e5d85472fb5931edd34c..1cac009c99b3eaeb9f366d9eae9a0e0fb00efc4f 100644 (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;