From 524ed5d515132a88ae7ac771b1367f866fbb5f0b Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 1 Apr 2008 12:40:00 +0000 Subject: [PATCH] Don't have singletons wireup the iof. Instead, we let the fork'd orted handle io forwarding. This prevents an issue with the event library and pty's on singletons This commit was SVN r18056. --- orte/mca/ess/singleton/ess_singleton_module.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/orte/mca/ess/singleton/ess_singleton_module.c b/orte/mca/ess/singleton/ess_singleton_module.c index 429c8b0a40..e3a5697953 100644 --- a/orte/mca/ess/singleton/ess_singleton_module.c +++ b/orte/mca/ess/singleton/ess_singleton_module.c @@ -130,20 +130,11 @@ static int rte_init(char flags) return rc; } - /* wireup our io */ - if (ORTE_SUCCESS != (rc = orte_iof.iof_pull(ORTE_PROC_MY_NAME, ORTE_NS_CMP_JOBID, ORTE_IOF_STDOUT, 1))) { - ORTE_ERROR_LOG(rc); - return rc; - } - if (ORTE_SUCCESS != (rc = orte_iof.iof_pull(ORTE_PROC_MY_NAME, ORTE_NS_CMP_JOBID, ORTE_IOF_STDERR, 2))) { - ORTE_ERROR_LOG(rc); - return rc; - } - if (ORTE_SUCCESS != (rc = orte_iof.iof_push(ORTE_PROC_MY_NAME, ORTE_NS_CMP_JOBID, ORTE_IOF_STDIN, 0))) { - ORTE_ERROR_LOG(rc); - return rc; - } - + /* NOTE: do not wireup our io - let the fork'd orted serve + * as our io handler. This prevents issues with the event + * library wrt pty's and stdin + */ + return ORTE_SUCCESS; }