[openib-general] OpenSM/complib: Handle complib initialization failures better
Hal Rosenstock
halr at voltaire.com
Fri Feb 11 09:52:04 PST 2005
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;
More information about the general
mailing list