int main(int argc, const char **argv) { set_debug_flags(NULL, D_ALWAYS); set_mySubSystem( "TEST_LEASE_MANAGER", SUBSYSTEM_TYPE_TOOL ); // initialize to read from config file myDistro->Init( argc, argv ); config(); // Set up the dprintf stuff... dprintf_set_tool_debug("TEST_LEASE_MANAGER", 0); int status; status = tests.CmdLine( argc, argv ); if ( status < 0 ) { fprintf(stderr, "Error processing command line\n" ); exit( 1 ); } else if ( status > 0 ) { exit( 0 ); } // Install handlers signal( SIGINT, handle_sig ); signal( SIGTERM, handle_sig ); status = Tests.Run( ); exit( 0 ); }