Skip to content

Commit

Permalink
Propagate returned status
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Jul 27, 2023
1 parent afa0d68 commit 2eadf3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prted/pmix/pmix_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ static void regcbfunc(pmix_status_t status, size_t ref, void *cbdata)
PRTE_HIDE_UNUSED_PARAMS(status, ref);

PMIX_ACQUIRE_OBJECT(lock);
lock->status = status;
PRTE_PMIX_WAKEUP_THREAD(lock);
}

Expand Down Expand Up @@ -877,6 +878,7 @@ int pmix_server_init(void)
prc = PMIX_ERR_LOST_CONNECTION;
PMIx_Register_event_handler(&prc, 1, NULL, 0, lost_connection_hdlr, regcbfunc, &lock);
PRTE_PMIX_WAIT_THREAD(&lock);
prc = lock.status;
PRTE_PMIX_DESTRUCT_LOCK(&lock);
rc = prte_pmix_convert_status(prc);

Expand Down

0 comments on commit 2eadf3f

Please sign in to comment.