Skip to content

Commit 22ab73c

Browse files
Merge pull request #3471 from ggouaillardet/topic/execve_cmd
odls: fix handling of the orte fork agent
2 parents e682b5d + 16fc099 commit 22ab73c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

orte/mca/odls/alps/odls_alps_module.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1919
* Copyright (c) 2017 Rutgers, The State University of New Jersey.
2020
* All rights reserved.
21+
* Copyright (c) 2017 Research Organization for Information Science
22+
* and Technology (RIST). All rights reserved.
2123
*
2224
* $COPYRIGHT$
2325
*
@@ -452,7 +454,7 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd)
452454
}
453455
}
454456

455-
execve(cd->app->app, cd->argv, cd->env);
457+
execve(cd->cmd, cd->argv, cd->env);
456458
send_error_show_help(write_fd, 1,
457459
"help-orte-odls-alps.txt", "execve error",
458460
orte_process_info.nodename, cd->app->app, strerror(errno));

orte/mca/odls/default/odls_default_module.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1919
* Copyright (c) 2017 Rutgers, The State University of New Jersey.
2020
* All rights reserved.
21+
* Copyright (c) 2017 Research Organization for Information Science
22+
* and Technology (RIST). All rights reserved.
2123
*
2224
* $COPYRIGHT$
2325
*
@@ -431,7 +433,7 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd)
431433
}
432434

433435
/* Exec the new executable */
434-
execve(cd->app->app, cd->argv, cd->env);
436+
execve(cd->cmd, cd->argv, cd->env);
435437
getcwd(dir, sizeof(dir));
436438
send_error_show_help(write_fd, 1,
437439
"help-orte-odls-default.txt", "execve error",

0 commit comments

Comments
 (0)