]> git.sur5r.net Git - openldap/commitdiff
need starttime before backend db_open() is invoked
authorPierangelo Masarati <ando@openldap.org>
Thu, 15 May 2003 01:12:17 +0000 (01:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 15 May 2003 01:12:17 +0000 (01:12 +0000)
servers/slapd/daemon.c
servers/slapd/main.c

index ae5a754f7d05f0873bf8f0cd2ffb11c73f6e6fd1..73e7479155edd7624864e73916f0ba4ebcc8d069 100644 (file)
@@ -1115,7 +1115,6 @@ slapd_daemon_task(
 {
        int l;
        time_t  last_idle_check = 0;
-       time( &starttime );
 
        if ( global_idletimeout > 0 ) {
                last_idle_check = slap_get_time();
index 4028953a7deb0c5bb12116940adc37c5dcaebca3..ea41382b9ae95507c589fd3c77ba9b6f7b584243 100644 (file)
@@ -524,6 +524,12 @@ int main( int argc, char **argv )
        mal_leaktrace(1);
 #endif
 
+       /*
+        * FIXME: moved here from slapd_daemon_task()
+        * because back-monitor db_open() needs it
+        */
+       time( &starttime );
+
        if ( slap_startup( NULL )  != 0 ) {
                rc = 1;
                SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 21 );