2005-01-21 20:49:14 +03:00
|
|
|
/*
|
2010-03-24 00:28:02 +03:00
|
|
|
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
|
2005-11-05 22:57:48 +03:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-01-21 20:49:14 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2005-01-21 20:49:14 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
#include "orte_config.h"
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "orte/constants.h"
|
2005-01-21 20:49:14 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2005-09-19 19:29:14 +04:00
|
|
|
#include "opal/util/trace.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
2006-09-15 01:29:51 +04:00
|
|
|
|
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "orte/mca/errmgr/base/base.h"
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "orte/mca/errmgr/base/errmgr_private.h"
|
2005-01-21 20:49:14 +03:00
|
|
|
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
int orte_errmgr_base_close(void)
|
2005-01-21 20:49:14 +03:00
|
|
|
{
|
2005-09-19 19:29:14 +04:00
|
|
|
OPAL_TRACE(5);
|
2010-03-24 00:28:02 +03:00
|
|
|
|
2010-08-19 17:09:20 +04:00
|
|
|
/* if not initialized, then skip this action. */
|
|
|
|
if( !orte_errmgr_base.initialized ) {
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Close selected component */
|
|
|
|
if( NULL != orte_errmgr.finalize ) {
|
|
|
|
orte_errmgr.finalize();
|
2010-03-24 00:28:02 +03:00
|
|
|
}
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
/* Close all remaining available components (may be one if this is a
|
2010-08-19 17:09:20 +04:00
|
|
|
* OMPI RTE program, or [possibly] multiple if this is ompi_info)
|
|
|
|
*/
|
2010-04-27 02:15:57 +04:00
|
|
|
mca_base_components_close(orte_errmgr_base.output,
|
2010-03-24 00:28:02 +03:00
|
|
|
&orte_errmgr_base_components_available,
|
|
|
|
NULL);
|
|
|
|
|
2010-04-27 02:15:57 +04:00
|
|
|
orte_errmgr_base.initialized = false;
|
2006-09-15 01:29:51 +04:00
|
|
|
|
2011-08-18 20:24:45 +04:00
|
|
|
/* always leave a default set of fn pointers */
|
|
|
|
orte_errmgr = orte_errmgr_default_fns;
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
return ORTE_SUCCESS;
|
2005-01-21 20:49:14 +03:00
|
|
|
}
|