From a309c53bf285e144c8d8e237aab10ccf7d3605d4 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 15 Dec 2011 15:29:53 +0000 Subject: [PATCH] Set the lifeline when we are tree spawning under rsh so that the orted can self-terminate when its parent dies This commit was SVN r25655. --- orte/orted/orted_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/orte/orted/orted_main.c b/orte/orted/orted_main.c index 74966e6952..a62cc0638c 100644 --- a/orte/orted/orted_main.c +++ b/orte/orted/orted_main.c @@ -577,6 +577,13 @@ int orte_daemon(int argc, char *argv[]) ORTE_ERROR_LOG(ret); goto DONE; } + /* set the lifeline to point to our parent so that we + * can handle the situation if that lifeline goes away + */ + if (ORTE_SUCCESS != (ret = orte_routed.set_lifeline(&parent))) { + ORTE_ERROR_LOG(ret); + goto DONE; + } } /* if we are not the HNP...the only time we will be an HNP