Skip to content

Commit

Permalink
Unlock stdin target
Browse files Browse the repository at this point in the history
Fix typo that locked the target to rank=0 and instead
use the rank provided by user.

Signed-off-by: Ralph Castain <[email protected]>
  • Loading branch information
rhc54 committed Oct 15, 2024
1 parent 52a47b4 commit d4dd480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/prted/prun_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ int prun_common(pmix_cli_result_t *results,
} else if (0 == strcmp(opt->values[0], "none")) {
pname.rank = PMIX_RANK_INVALID;
} else {
pname.rank = 0;
pname.rank = strtoul(opt->values[0], NULL, 10);
}
} else {
pname.rank = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/prte/prte.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ int main(int argc, char *argv[])
} else if (0 == strcmp(opt->values[0], "none")) {
pname.rank = PMIX_RANK_INVALID;
} else {
pname.rank = 0;
pname.rank = strtoul(opt->values[0], NULL, 10);
}
} else {
pname.rank = 0;
Expand Down

0 comments on commit d4dd480

Please sign in to comment.