OpenSM/complib: Handle complib initialization failures better (e.g. cleanup and exit gracefully)
Index: cl_complib.c =================================================================== --- cl_complib.c (revision 1745) +++ cl_complib.c (working copy) @@ -86,7 +86,7 @@ { cl_msg_out( "__init: failed to init syshelper (%s) \n", CL_STATUS_MSG( status ) ); - + exit(1); } /* @@ -98,6 +98,8 @@ { cl_msg_out( "__init: failed to create timer provider status (%s) \n", CL_STATUS_MSG( status ) ); + __cl_sys_callback_destroy(); + exit(1); } /* @@ -108,6 +110,9 @@ { cl_msg_out( "__init: failed to initialize syscall back (%s) \n", CL_STATUS_MSG( status ) ); + __cl_timer_prov_destroy(); + __cl_sys_callback_destroy(); + exit(1); } return; _______________________________________________ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general