Skip to content

Commit efafd62

Browse files
author
rhc54
committed
Merge pull request #1451 from ggouaillardet/topic/orte_fork_wrapper_fullname
odls/base: use the full app name when using an orte fork agent
2 parents a93b849 + 589924c commit efafd62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

orte/mca/odls/base/odls_base_default_fns.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* All rights reserved.
1616
* Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved.
1717
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
18-
* Copyright (c) 2014 Research Organization for Information Science
18+
* Copyright (c) 2014-2016 Research Organization for Information Science
1919
* and Technology (RIST). All rights reserved.
2020
* $COPYRIGHT$
2121
*
@@ -973,8 +973,10 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata)
973973
app->argv = NULL;
974974
/* now create a new one that starts with the fork agent */
975975
app->argv = opal_argv_copy(orte_fork_agent);
976-
/* add back the original argv */
977-
for (inm=0; NULL != argvsav[inm]; inm++) {
976+
/* app->argv[0] is the basename, but we require the full name that is in app->app */
977+
opal_argv_append_nosize(&app->argv, app->app);
978+
/* add back the rest of original argv */
979+
for (inm=1; NULL != argvsav[inm]; inm++) {
978980
opal_argv_append_nosize(&app->argv, argvsav[inm]);
979981
}
980982
/* the app exe name itself is in the argvsav array, so

0 commit comments

Comments
 (0)