From b11f93a039b8682eb2b0c0740c0f10d236aa0f16 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Sun, 11 Sep 2011 14:53:26 +0000 Subject: [PATCH] Check add_procs return value This commit was SVN r25122. --- ompi/mca/dpm/orte/dpm_orte.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ompi/mca/dpm/orte/dpm_orte.c b/ompi/mca/dpm/orte/dpm_orte.c index 7500a8123e..7e17e74f71 100644 --- a/ompi/mca/dpm/orte/dpm_orte.c +++ b/ompi/mca/dpm/orte/dpm_orte.c @@ -422,7 +422,10 @@ static int connect_accept ( ompi_communicator_t *comm, int root, "%s dpm:orte:connect_accept adding procs", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME))); - MCA_PML_CALL(add_procs(new_proc_list, new_proc_len)); + if (OMPI_SUCCESS != (rc = MCA_PML_CALL(add_procs(new_proc_list, new_proc_len)))) { + ORTE_ERROR_LOG(rc); + goto exit; + } OPAL_OUTPUT_VERBOSE((3, ompi_dpm_base_output, "%s dpm:orte:connect_accept new procs added",