From d0137acaa4de762048625b180409244d8b5c45d8 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 26 Jul 2007 17:49:13 +0000 Subject: [PATCH] If --debug-daemons-file is specified, it should also imply --debug-daemons. This commit was SVN r15640. --- orte/runtime/orte_params.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/orte/runtime/orte_params.c b/orte/runtime/orte_params.c index 7455f45367..1e2c5c52bd 100644 --- a/orte/runtime/orte_params.c +++ b/orte/runtime/orte_params.c @@ -64,11 +64,6 @@ int orte_register_params(bool infrastructure) false, false, (int)false, &value); orte_debug_flag = OPAL_INT_TO_BOOL(value); - mca_base_param_reg_int_name("orte", "debug_daemons_file", - "Whether want stdout/stderr of daemons to go to a file or not", - false, false, (int)false, &value); - orte_debug_daemons_file_flag = OPAL_INT_TO_BOOL(value); - mca_base_param_reg_int_name("orte", "no_daemonize", "Whether to properly daemonize the ORTE daemons or not", false, false, (int)false, NULL); @@ -79,6 +74,16 @@ int orte_register_params(bool infrastructure) false, false, (int)false, &value); orte_debug_daemons_flag = OPAL_INT_TO_BOOL(value); + mca_base_param_reg_int_name("orte", "debug_daemons_file", + "Whether want stdout/stderr of daemons to go to a file or not", + false, false, (int)false, &value); + orte_debug_daemons_file_flag = OPAL_INT_TO_BOOL(value); + /* If --debug-daemons-file was specified, that also implies + --debug-daemons */ + if (orte_debug_daemons_file_flag) { + orte_debug_daemons_flag = true; + } + mca_base_param_reg_int_name("orted", "spin", "Have any orteds spin until we can connect a debugger to them", false, false, (int)false, &value);