From: Howard Chu Date: Tue, 9 Dec 2003 19:26:14 +0000 (+0000) Subject: ITS#2868 check result from slap_startup X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~223 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=67ee75ccd81ad67bdb5eac0b2ae7fca847d59f80;p=openldap ITS#2868 check result from slap_startup --- diff --git a/servers/slapd/tools/slapcommon.c b/servers/slapd/tools/slapcommon.c index ddf2124f9c..73fabc76bb 100644 --- a/servers/slapd/tools/slapcommon.c +++ b/servers/slapd/tools/slapcommon.c @@ -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 )