Skip to content

Commit 8e3f0b1

Browse files
author
Ralph Castain
committed
Ensure the --tree-spawn option is inside any parens from the sh and ksh shell support
1 parent 554c7c3 commit 8e3f0b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

orte/mca/plm/rsh/plm_rsh_module.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ static int setup_launch(int *argcptr, char ***argvptr,
662662
/* protect the params */
663663
mca_base_cmd_line_wrap_args(argv);
664664

665+
/* tell the daemon we are in a tree spawn */
666+
opal_argv_append(&argc, &argv, "--tree-spawn");
667+
665668
value = opal_argv_join(argv, ' ');
666669
if (sysconf(_SC_ARG_MAX) < (int)strlen(value)) {
667670
orte_show_help("help-plm-rsh.txt", "cmd-line-too-long",
@@ -837,9 +840,6 @@ static int remote_spawn(opal_buffer_t *launch)
837840
goto cleanup;
838841
}
839842

840-
/* tell the daemon we are in a tree spawn */
841-
opal_argv_append(&argc, &argv, "--tree-spawn");
842-
843843
/* get the daemon job object */
844844
if (NULL == (daemons = orte_get_job_data_object(ORTE_PROC_MY_NAME->jobid))) {
845845
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);

0 commit comments

Comments
 (0)