From: miker Date: Tue, 12 Jun 2007 01:15:55 +0000 (+0000) Subject: Capturing the return value of the bootstrap call and emitting a message when encounte... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b6799332d8be47835263768372817ba723ba7bcc;p=opensrf%2Fbjwebb.git Capturing the return value of the bootstrap call and emitting a message when encountering a non-success value git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@941 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libstack/opensrf.c b/src/libstack/opensrf.c index 2277eb4..9291930 100644 --- a/src/libstack/opensrf.c +++ b/src/libstack/opensrf.c @@ -21,13 +21,22 @@ int main( int argc, char* argv[] ) { init_proc_title( argc, argv ); set_proc_title( "OpenSRF System-C" ); - osrfSystemBootstrap( host, config, context ); + int ret = osrfSystemBootstrap( host, config, context ); + + if (ret != 0) { + osrfLogError( + OSRF_LOG_MARK, + "Server Loop returned an error condition, exiting with %d", + ret + ); + } + free(host); free(config); free(context); - return 0; + return ret; }