From bc2586cf3c78ef8c2c71bf4f793c662bde5a6f64 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 19 Jul 2013 01:24:51 +0000 Subject: [PATCH] Refs trac:3685. Check error code returned by PMI2_Info_GetJobAttr. This commit was SVN r28854. The following Trac tickets were found above: Ticket 3685 --> https://svn.open-mpi.org/trac/ompi/ticket/3685 --- orte/mca/ess/pmi/ess_pmi_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/mca/ess/pmi/ess_pmi_module.c b/orte/mca/ess/pmi/ess_pmi_module.c index 20557e20df..3108583226 100644 --- a/orte/mca/ess/pmi/ess_pmi_module.c +++ b/orte/mca/ess/pmi/ess_pmi_module.c @@ -265,7 +265,7 @@ static int rte_init(void) orte_vpid_t n; char *p; ret = PMI2_Info_GetJobAttr("PMI_process_mapping", pmapping, PMI2_MAX_VALLEN, &found); - if (!found) { + if (!found || PMI2_SUCCESS != ret) { error = "could not get PMI_process_mapping (PMI2_Info_GetJobAttr() failed)"; goto error; }