Skip to content

Commit

Permalink
Merge pull request #244 from rhc54/topic/sched
Browse files Browse the repository at this point in the history
Protect against attributes from newer PMIx versions
  • Loading branch information
rhc54 committed Aug 9, 2019
2 parents bfb0246 + 939298c commit e93c77c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions orte/orted/pmix/pmix_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,16 +378,20 @@ int pmix_server_init(void)
/* if we are the MASTER, then we are the scheduler
* as well as a gateway */
if (ORTE_PROC_IS_MASTER) {
#ifdef PMIX_SERVER_SCHEDULER
kv = OBJ_NEW(opal_value_t);
kv->key = strdup(PMIX_SERVER_SCHEDULER);
kv->type = OPAL_BOOL;
kv->data.flag = true;
opal_list_append(&ilist, &kv->super);
#endif
#ifdef PMIX_SERVER_GATEWAY
kv = OBJ_NEW(opal_value_t);
kv->key = strdup(PMIX_SERVER_GATEWAY);
kv->type = OPAL_BOOL;
kv->data.flag = true;
opal_list_append(&ilist, &kv->super);
#endif
}

/* PRRTE always allows remote tool connections */
Expand Down

0 comments on commit e93c77c

Please sign in to comment.