From 3f3b46495e16391e3b01bef0159161e592c0a1b5 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 14 Aug 2009 03:13:02 +0000 Subject: [PATCH] Add some error checking to the tm launcher This commit was SVN r21818. --- orte/mca/plm/tm/plm_tm_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/orte/mca/plm/tm/plm_tm_module.c b/orte/mca/plm/tm/plm_tm_module.c index e41ca35705..a98f15379f 100644 --- a/orte/mca/plm/tm/plm_tm_module.c +++ b/orte/mca/plm/tm/plm_tm_module.c @@ -382,6 +382,11 @@ static int plm_tm_launch_job(orte_job_t *jdata) opal_output(0, "plm:tm: failed to poll for a spawned daemon, return status = %d", rc); goto cleanup; } + if (TM_SUCCESS != local_err) { + errno = local_err; + opal_output(0, "plm:tm: failed to spawn daemon, error code = %d", errno ); + goto cleanup; + } } /* set a timer to tell us if one or more daemon's fails to start - use the