]> git.sur5r.net Git - openldap/commitdiff
ITS#2868 check result from slap_startup
authorHoward Chu <hyc@openldap.org>
Tue, 9 Dec 2003 19:26:14 +0000 (19:26 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 9 Dec 2003 19:26:14 +0000 (19:26 +0000)
servers/slapd/tools/slapcommon.c

index ddf2124f9c3e6fa64f2e7c8080c6bd0fc39c6436..73fabc76bb3fd82912155f384a0e2e6291acb2e1 100644 (file)
@@ -412,7 +412,10 @@ slap_tool_init(
        mal_leaktrace(1);
 #endif
 
-       slap_startup( be );
+       if ( slap_startup( be ) ) {
+               fprintf( stderr, "slap_startup failed\n" );
+               exit( EXIT_FAILURE );
+       }
 }
 
 void slap_tool_destroy( void )