|
|
@@ -1229,7 +1229,11 @@ int main (int argc, char **argv)
|
|
|
|
|
|
openais_service_default_objdb_set (objdb);
|
|
|
|
|
|
- openais_service_link_all (objdb);
|
|
|
+ res = openais_service_link_all (objdb);
|
|
|
+ if (res == -1) {
|
|
|
+ log_printf (LOG_LEVEL_ERROR, "Could not load services\n");
|
|
|
+ openais_exit_error (AIS_DONE_DYNAMICLOAD);
|
|
|
+ }
|
|
|
|
|
|
res = openais_main_config_read (objdb, &error_string, &main_config);
|
|
|
if (res == -1) {
|
|
|
@@ -1307,8 +1311,12 @@ int main (int argc, char **argv)
|
|
|
* This must occur after totempg is initialized because "this_ip" must be set
|
|
|
*/
|
|
|
this_ip = &totem_config.interfaces[0].boundto;
|
|
|
- openais_service_init_all (service_count, objdb);
|
|
|
|
|
|
+ res = openais_service_init_all (service_count, objdb);
|
|
|
+ if (res == -1) {
|
|
|
+ log_printf (LOG_LEVEL_ERROR, "Could not init services\n");
|
|
|
+ openais_exit_error (AIS_DONE_INIT_SERVICES);
|
|
|
+ }
|
|
|
|
|
|
sync_register (openais_sync_callbacks_retrieve, openais_sync_completed);
|
|
|
|