Skip to content

Commit 36ac54b

Browse files
author
Mark Santcroos
committed
Bring ALPS ODLS up to par regarding wdir.
Signed-off-by: Mark Santcroos <[email protected]>
1 parent d7f283c commit 36ac54b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

orte/mca/odls/alps/odls_alps_module.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,11 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd)
423423
sigprocmask(0, 0, &sigs);
424424
sigprocmask(SIG_UNBLOCK, &sigs, 0);
425425

426+
/* take us to the correct wdir */
427+
if (NULL != cd->wdir) {
428+
chdir(cd->wdir);
429+
}
430+
426431
/* Exec the new executable */
427432

428433
if (10 < opal_output_get_verbosity(orte_odls_base_framework.framework_output)) {

0 commit comments

Comments
 (0)