Skip to content

Commit b0d461d

Browse files
committed
Unlock stdin target
Fix typo that locked the target to rank=0 and instead use the rank provided by user. Signed-off-by: Ralph Castain <[email protected]>
1 parent 52a47b4 commit b0d461d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/prted/prun_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ int prun_common(pmix_cli_result_t *results,
786786
} else if (0 == strcmp(opt->values[0], "none")) {
787787
pname.rank = PMIX_RANK_INVALID;
788788
} else {
789-
pname.rank = 0;
789+
pname.rank = strtoul(opt->values[0], NULL, 10);
790790
}
791791
} else {
792792
pname.rank = 0;

src/tools/prte/prte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ int main(int argc, char *argv[])
12051205
} else if (0 == strcmp(opt->values[0], "none")) {
12061206
pname.rank = PMIX_RANK_INVALID;
12071207
} else {
1208-
pname.rank = 0;
1208+
pname.rank = strtoul(opt->values[0], NULL, 10);
12091209
}
12101210
} else {
12111211
pname.rank = 0;

0 commit comments

Comments
 (0)